1 - name: "Update ~root from ~phd"
2 hosts: "{{ hosts | default('all') }}"
6 - name: "Update ~root - sync directories from ~phd"
7 ansible.posix.synchronize:
10 archive: no # avoid setting owner/group
14 delegate_to: "{{ inventory_hostname }}"
15 loop: ['.vim', 'bin', 'lib']
17 - name: "Update ~root - sync files from ~phd"
19 src: "~phd/{{ item }}"
25 loop: ['.bashrc', 'admin/home/root/.profile',
26 '.bash_logout', '.inputrc', '.less', '.lesskey',
27 '.screenrc', '.shellrc', '.tmux.conf', '.vimrc',
30 - name: "Update ~root/.ssh/known_hosts"
32 src: ~phd/.ssh/known_hosts
34 dest: ~root/.ssh/known_hosts
39 - name: "Create ~root/admin/prog/"
41 path: ~root/admin/prog
47 - name: "Update ~root/admin/prog/bash_prompt"
49 src: ~phd/admin/prog/bash_prompt
51 dest: ~root/admin/prog/bash_prompt
56 - name: "Update root mc - overwrite files from ~phd/admin"
59 src: "~phd/admin/home/root/.mc/{{ item }}"
66 loop: ['hotlist', 'ini', 'panels.ini']