diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-11-20 17:20:25 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-11-21 16:23:37 -0500 |
commit | a1fa70c1ac6fbe9a4c8ca740b2c6c3cf5ff27ef1 (patch) | |
tree | 99ac77931e1770a6d45d07a5fd534460df7e1654 /playbooks/openshift-etcd/private/restart.yml | |
parent | 51a0cbd42807c91a5e30fa58362b8745a40607f2 (diff) | |
download | openshift-a1fa70c1ac6fbe9a4c8ca740b2c6c3cf5ff27ef1.tar.gz openshift-a1fa70c1ac6fbe9a4c8ca740b2c6c3cf5ff27ef1.tar.bz2 openshift-a1fa70c1ac6fbe9a4c8ca740b2c6c3cf5ff27ef1.tar.xz openshift-a1fa70c1ac6fbe9a4c8ca740b2c6c3cf5ff27ef1.zip |
Cleanup etcd runtime variable.
Cleaning out reference to etcd_runtime in openshift facts.
Diffstat (limited to 'playbooks/openshift-etcd/private/restart.yml')
-rw-r--r-- | playbooks/openshift-etcd/private/restart.yml | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/playbooks/openshift-etcd/private/restart.yml b/playbooks/openshift-etcd/private/restart.yml index 5eaea5ae8..0751480e2 100644 --- a/playbooks/openshift-etcd/private/restart.yml +++ b/playbooks/openshift-etcd/private/restart.yml @@ -3,25 +3,17 @@ hosts: oo_etcd_to_config serial: 1 tasks: - - name: restart etcd - service: - name: "{{ 'etcd_container' if openshift.common.etcd_runtime == 'docker' else 'etcd' }}" - state: restarted + - include_role: + name: etcd + tasks_from: restart.yml when: - not g_etcd_certificates_expired | default(false) | bool - name: Restart etcd hosts: oo_etcd_to_config tasks: - - name: stop etcd - service: - name: "{{ 'etcd_container' if openshift.common.etcd_runtime == 'docker' else 'etcd' }}" - state: stopped - when: - - g_etcd_certificates_expired | default(false) | bool - - name: start etcd - service: - name: "{{ 'etcd_container' if openshift.common.etcd_runtime == 'docker' else 'etcd' }}" - state: started + - include_role: + name: etcd + tasks_from: restart.yml when: - g_etcd_certificates_expired | default(false) | bool |