diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-11-21 14:28:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 14:28:32 -0500 |
commit | ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb (patch) | |
tree | 1d6e3abafaeee24c1b84c05d376dcaf70683c885 /playbooks/openshift-etcd/private/restart.yml | |
parent | 33350641a1377c66356f8b4b96a7011607a29b50 (diff) | |
parent | 79939ca092b9ee0fe31e5964102c60fca73da568 (diff) | |
download | openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.tar.gz openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.tar.bz2 openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.tar.xz openshift-ffff1d7465d92e7f5522da11d6fd1ae23c54fdfb.zip |
Merge pull request #6145 from mtnbikenc/consolidate-openshift-etcd
Playbook Consolidation - openshift-etcd
Diffstat (limited to 'playbooks/openshift-etcd/private/restart.yml')
-rw-r--r-- | playbooks/openshift-etcd/private/restart.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/playbooks/openshift-etcd/private/restart.yml b/playbooks/openshift-etcd/private/restart.yml new file mode 100644 index 000000000..5eaea5ae8 --- /dev/null +++ b/playbooks/openshift-etcd/private/restart.yml @@ -0,0 +1,27 @@ +--- +- name: Restart etcd + 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 + 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 + when: + - g_etcd_certificates_expired | default(false) | bool |