From ccd877685c0906991fddf6cdec41982024f18122 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 31 Oct 2019 16:21:01 +0300 Subject: [PATCH] Feat(sa-merge-all): Run `sa-learn --sync` before dump --- playbooks/debian/sa-merge-all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}" -- 2.39.5