summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-29 10:34:42 -0400
committerGitHub <noreply@github.com>2017-06-29 10:34:42 -0400
commitd108da5c4447950f07f9f0ead181383d8c6b4b02 (patch)
tree479b65ab64bece1aa5a30aab78fa6579d3612561
parentf1f460f79cfff40cb90dcd23c90b41195c5acd91 (diff)
parent8bf5a2dd7dde62b45d49a3cd8cee1bfe163d54ed (diff)
downloadopenshift-d108da5c4447950f07f9f0ead181383d8c6b4b02.tar.gz
openshift-d108da5c4447950f07f9f0ead181383d8c6b4b02.tar.bz2
openshift-d108da5c4447950f07f9f0ead181383d8c6b4b02.tar.xz
openshift-d108da5c4447950f07f9f0ead181383d8c6b4b02.zip
Merge pull request #4633 from ashcrow/path
etcd_migrate: Add /usr/local/bin to path for oadm
-rw-r--r--roles/etcd_migrate/tasks/migrate.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/etcd_migrate/tasks/migrate.yml b/roles/etcd_migrate/tasks/migrate.yml
index 27eb945aa..7f441568a 100644
--- a/roles/etcd_migrate/tasks/migrate.yml
+++ b/roles/etcd_migrate/tasks/migrate.yml
@@ -31,6 +31,8 @@
name: "{{ l_etcd_service }}"
state: started
+# NOTE: /usr/local/bin may be removed from the PATH by ansible hence why
+# it's added to the environment in this task.
- name: Re-introduce leases (as a replacement for key TTLs)
command: >
oadm migrate etcd-ttl \
@@ -42,6 +44,7 @@
--lease-duration 1h
environment:
ETCDCTL_API: 3
+ PATH: "/usr/local/bin:/var/usrlocal/bin:{{ ansible_env.PATH }}"
with_items:
- "/kubernetes.io/events"
- "/kubernetes.io/masterleases"