From: Oleg Broytman Date: Thu, 31 Oct 2019 13:21:01 +0000 (+0300) Subject: Feat(sa-merge-all): Run `sa-learn --sync` before dump X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ccd877685c0906991fddf6cdec41982024f18122;p=ansible.git Feat(sa-merge-all): Run `sa-learn --sync` before dump --- diff --git a/playbooks/debian/sa-merge-all.yml b/playbooks/debian/sa-merge-all.yml index a251e98..253aa98 100644 --- a/playbooks/debian/sa-merge-all.yml +++ b/playbooks/debian/sa-merge-all.yml @@ -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 }}"