Forráskód Böngészése

fix bash_profile for statusservices

Blaine Story 4 napja
szülő
commit
194cb33c6f
1 módosított fájl, 7 hozzáadás és 5 törlés
  1. 7 5
      roles/statusservices/tasks/main.yml

+ 7 - 5
roles/statusservices/tasks/main.yml

@@ -16,17 +16,19 @@
   when:
     - service_list is defined
 
-- name: Ensure root .bash_profile exists
+- name: Ensure root .bash_profile.local exists
   ansible.builtin.file:
-    path: /root/.bash_profile
-    state: file
+    path: /root/.bash_profile.local
+    state: touch
     owner: root
     group: root
     mode: '0640'
+  changed_when: false
 
-- name: Add statusservices to .bash_profile
+
+- name: Add statusservices to .bash_profile.local
   lineinfile:
-    path: /root/.bash_profile
+    path: /root/.bash_profile.local
     line: '/usr/local/bin/statusservices'
     state: present
   when: