Преглед на файлове

ensure .bash_profile exists in statusservices role

Blaine Story преди 1 година
родител
ревизия
b18f972107
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      roles/statusservices/tasks/main.yml

+ 8 - 0
roles/statusservices/tasks/main.yml

@@ -16,6 +16,14 @@
   when:
     - service_list is defined
 
+- name: Ensure root .bash_profile exists
+  ansible.builtin.file:
+    path: /root/.bash_profile
+    state: touch
+    owner: root
+    group: root
+    mode: '0640'
+
 - name: Add statusservices to .bash_profile
   lineinfile:
     path: /root/.bash_profile