summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-etcd/restart.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/common/openshift-etcd/restart.yml')
-rw-r--r--playbooks/common/openshift-etcd/restart.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/playbooks/common/openshift-etcd/restart.yml b/playbooks/common/openshift-etcd/restart.yml
new file mode 100644
index 000000000..196c86f28
--- /dev/null
+++ b/playbooks/common/openshift-etcd/restart.yml
@@ -0,0 +1,9 @@
+---
+- name: Restart etcd
+ hosts: oo_etcd_to_config
+ serial: 1
+ tasks:
+ - name: restart etcd
+ service:
+ name: "{{ 'etcd' if not openshift.common.is_containerized | bool else 'etcd_container' }}"
+ state: restarted