瀏覽代碼

At least backup things

Scott Dodson 9 年之前
父節點
當前提交
98fa177034
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      roles/openshift_master/tasks/systemd_units.yml

+ 3 - 0
roles/openshift_master/tasks/systemd_units.yml

@@ -42,6 +42,7 @@
   template:
     src: "{{ ha_svc_template_path }}/atomic-openshift-master-api.j2"
     dest: /etc/sysconfig/{{ openshift.common.service_type }}-master-api
+    backup: true
   when: openshift.master.ha is defined and openshift.master.ha | bool and openshift_master_cluster_method == "native"
   notify:
   - restart master api
@@ -50,6 +51,7 @@
   template:
     src: "{{ ha_svc_template_path }}/atomic-openshift-master-controllers.j2"
     dest: /etc/sysconfig/{{ openshift.common.service_type }}-master-controllers
+    backup: true
   when: openshift.master.ha is defined and openshift.master.ha | bool and openshift_master_cluster_method == "native"
   notify:
   - restart master controllers
@@ -65,5 +67,6 @@
   template:
     src: "atomic-openshift-master.j2"
     dest: /etc/sysconfig/{{ openshift.common.service_type }}-master
+    backup: true
   notify:
   - restart master