]> git.phdru.name Git - ansible.git/blobdiff - playbooks/update-root.yml
Feat(debian/named): Insert IP address
[ansible.git] / playbooks / update-root.yml
index c59578b13b702f61755e6d5551891a5c2f29f2bd..4b1b94e665105cfb23fcfa4d9eeba7098359a808 100644 (file)
@@ -4,7 +4,7 @@
   gather_facts: false
   tasks:
     - name: "Update ~root - sync directories from ~phd"
-      synchronize:
+      ansible.posix.synchronize:
         src: "~phd/{{ item }}"
         dest: ~root
         archive: no  # avoid setting owner/group
              '.screenrc', '.shellrc', '.tmux.conf', '.vimrc',
             ]
 
+    - name: "Create ~root/admin/prog/"
+      file:
+        path: ~root/admin/prog
+        state: directory
+        owner: root
+        group: root
+        mode: "0600"
+
+    - name: "Update ~root/admin/prog/bash_prompt"
+      copy:
+        src: ~phd/admin/prog/bash_prompt
+        remote_src: yes
+        dest: ~root/admin/prog/bash_prompt
+        owner: root
+        group: root
+        mode: "0600"
+
     - name: "Update root mc - overwrite files from ~phd/admin"
       become: true
       copy:
@@ -38,4 +55,3 @@
         mode: "0600"
         force: no
       loop: ['hotlist', 'ini', 'panels.ini']
-