summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-etcd/private/restart.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/openshift-etcd/private/restart.yml')
-rw-r--r--playbooks/openshift-etcd/private/restart.yml19
1 files changed, 19 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..0751480e2
--- /dev/null
+++ b/playbooks/openshift-etcd/private/restart.yml
@@ -0,0 +1,19 @@
+---
+- name: Restart etcd
+ hosts: oo_etcd_to_config
+ serial: 1
+ tasks:
+ - 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:
+ - include_role:
+ name: etcd
+ tasks_from: restart.yml
+ when:
+ - g_etcd_certificates_expired | default(false) | bool