From: Oleg Broytman Date: Mon, 25 Oct 2021 12:18:14 +0000 (+0300) Subject: Feat: Module `synchronize` was moved to `ansible.posix` namespace X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=da857ba1a36a58824daa8a29eab99db40338083c;p=ansible.git Feat: Module `synchronize` was moved to `ansible.posix` namespace --- diff --git a/playbooks/debian/sa-merge-all.yml b/playbooks/debian/sa-merge-all.yml index dbf9b4c..0fade98 100644 --- a/playbooks/debian/sa-merge-all.yml +++ b/playbooks/debian/sa-merge-all.yml @@ -17,7 +17,7 @@ - name: Backup SpamAssassin DB shell: "sa-learn --sync && exec sa-learn --backup >~/tmp/sa-learn.backup@{{ inventory_hostname }}" - name: Fetch SpamAssassin DB backup - synchronize: + ansible.posix.synchronize: src: "~/tmp/sa-learn.backup@{{ inventory_hostname }}" dest: "~/tmp/sa-learn.backup@{{ inventory_hostname }}" mode: pull @@ -31,7 +31,7 @@ - block: - name: Push combined SpamAssassin DB backup - synchronize: + ansible.posix.synchronize: src: "~/tmp/sa-learn.backup" dest: "~/tmp/sa-learn.backup" - name: Restore combined SpamAssassin DB diff --git a/playbooks/roles/debian/dehydrated/tasks/main.yml b/playbooks/roles/debian/dehydrated/tasks/main.yml index d6d7ed8..4cb5cbf 100644 --- a/playbooks/roles/debian/dehydrated/tasks/main.yml +++ b/playbooks/roles/debian/dehydrated/tasks/main.yml @@ -41,7 +41,7 @@ mode: "ug+rwx,o+rx,g+s" - name: Synchronize dehydrated to the server - synchronize: + ansible.posix.synchronize: src: /usr/local/src/LetsEncrypt/dehydrated dest: /usr/local/src/LetsEncrypt diff --git a/playbooks/update-root.yml b/playbooks/update-root.yml index ac82818..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 @@ -55,4 +55,3 @@ mode: "0600" force: no loop: ['hotlist', 'ini', 'panels.ini'] -