X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fupdate-root.yml;h=4b1b94e665105cfb23fcfa4d9eeba7098359a808;hb=e325a0c297f1c41fc93fb39ee27ed6c7969f4ad9;hp=1deda04634252fc20637a40e9321ecd937eef1a0;hpb=86f60f40dd650fcf9ac23e40b9afa8357d00e2c2;p=ansible.git diff --git a/playbooks/update-root.yml b/playbooks/update-root.yml index 1deda04..4b1b94e 100644 --- a/playbooks/update-root.yml +++ b/playbooks/update-root.yml @@ -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 @@ -22,12 +22,28 @@ owner: root group: root mode: "0600" - force: no loop: ['.bashrc', 'admin/home/root/.profile', '.bash_logout', '.inputrc', '.less', '.lesskey', '.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: @@ -39,4 +55,3 @@ mode: "0600" force: no loop: ['hotlist', 'ini', 'panels.ini'] -