diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-11-14 15:16:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 15:16:11 -0500 |
commit | ae34dc20b9e797d6b73576b30b73931beca693ec (patch) | |
tree | d8e3f3d52ae078fbecd19df3cacb4d1bab65986f /roles/etcd/tasks | |
parent | 8e872d99d99c6451ecd28f56931926f30fa1b613 (diff) | |
parent | 371c36eae16644bda921550371da713e63e44fac (diff) | |
download | openshift-ae34dc20b9e797d6b73576b30b73931beca693ec.tar.gz openshift-ae34dc20b9e797d6b73576b30b73931beca693ec.tar.bz2 openshift-ae34dc20b9e797d6b73576b30b73931beca693ec.tar.xz openshift-ae34dc20b9e797d6b73576b30b73931beca693ec.zip |
Merge pull request #2562 from sdodson/etcd3
etcd upgrade playbooks
Diffstat (limited to 'roles/etcd/tasks')
-rw-r--r-- | roles/etcd/tasks/etcdctl.yml | 11 | ||||
-rw-r--r-- | roles/etcd/tasks/main.yml | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/roles/etcd/tasks/etcdctl.yml b/roles/etcd/tasks/etcdctl.yml new file mode 100644 index 000000000..32c176449 --- /dev/null +++ b/roles/etcd/tasks/etcdctl.yml @@ -0,0 +1,11 @@ +- name: Install etcd for etcdctl + action: "{{ ansible_pkg_mgr }} name=etcd state=present" + when: not openshift.common.is_atomic | bool + +- name: Configure etcd profile.d alises + copy: + src: etcdctl.sh + dest: /etc/profile.d/etcdctl.sh + mode: 0755 + owner: root + group: root diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml index 2bc6a8678..790eb3c5a 100644 --- a/roles/etcd/tasks/main.yml +++ b/roles/etcd/tasks/main.yml @@ -74,5 +74,8 @@ enabled: yes register: start_result +- include: etcdctl.yml + when: openshift_etcd_etcdctl_profile | default(true) | bool + - set_fact: etcd_service_status_changed: "{{ start_result | changed }}" |