Explorar el Código

At least backup things

Scott Dodson hace 9 años
padre
commit
98fa177034
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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