X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Fupdate-root.yml;h=1deda04634252fc20637a40e9321ecd937eef1a0;hb=7382ec40f7d14d81091225d17c3e79a74f193957;hp=74d0a8c9b9027ff5ebd5b7cfbd0bb207a7314143;hpb=e04e6116652d0496b51bd2dec7507c5fac209d73;p=ansible.git diff --git a/playbooks/debian/update-root.yml b/playbooks/debian/update-root.yml index 74d0a8c..1deda04 100644 --- a/playbooks/debian/update-root.yml +++ b/playbooks/debian/update-root.yml @@ -4,9 +4,14 @@ gather_facts: false tasks: - name: "Update ~root - sync directories from ~phd" - command: "rsync -rlt --info=name ~phd/{{ item }} ~root" - register: rsync - changed_when: "rsync.stdout != ''" + synchronize: + src: "~phd/{{ item }}" + dest: ~root + archive: no # avoid setting owner/group + recursive: yes + links: yes + times: yes + delegate_to: "{{ inventory_hostname }}" loop: ['.vim', 'bin', 'lib'] - name: "Update ~root - sync files from ~phd"