]> git.phdru.name Git - ansible.git/commitdiff
Feat(sa-merge-all): Run `sa-learn --sync` before dump
authorOleg Broytman <phd@phdru.name>
Thu, 31 Oct 2019 13:21:01 +0000 (16:21 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 31 Oct 2019 13:21:01 +0000 (16:21 +0300)
playbooks/debian/sa-merge-all.yml

index a251e989071a62aa3bca2216e03d08cf9af5edf0..253aa98d33af413fa9ca761d8a3703aa0dcceba6 100644 (file)
@@ -15,7 +15,7 @@
           state: stopped
 
       - name: Backup SpamAssassin DB
-        shell: "exec sa-learn --backup >~/tmp/sa-learn.backup@{{ inventory_hostname }}"
+        shell: "sa-learn --sync && exec sa-learn --backup >~/tmp/sa-learn.backup@{{ inventory_hostname }}"
       - name: Fetch SpamAssassin DB backup
         synchronize:
           src: "~/tmp/sa-learn.backup@{{ inventory_hostname }}"