Browse Source

Remove outdated api/controllers settings in - /etc/sysconfig

Vadim Rutkovsky 7 years ago
parent
commit
7dc9e74b00
1 changed files with 8 additions and 0 deletions
  1. 8 0
      roles/openshift_control_plane/tasks/static.yml

+ 8 - 0
roles/openshift_control_plane/tasks/static.yml

@@ -53,6 +53,14 @@
   - apiserver.yaml
   - controller.yaml
 
+- name: Remove old files in /etc/sysconfig
+  file:
+    name: "{{ item }}"
+    state: absent
+  with_items:
+  - /etc/sysconfig/{{ openshift_service_type }}-api
+  - /etc/sysconfig/{{ openshift_service_type }}-controllers
+
 - name: Remove temporary directory
   file:
     name: "{{ mktemp.stdout }}"