From 7ff56df9f92f8c32a49b52c5aa55dd50076654a6 Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Wed, 27 Sep 2017 16:34:18 -0300 Subject: [PATCH] Bugfix #11 - Role fails to find local zimbra commands --- tasks/configure/mta.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tasks/configure/mta.yml b/tasks/configure/mta.yml index 8bced03..af64916 100644 --- a/tasks/configure/mta.yml +++ b/tasks/configure/mta.yml @@ -19,17 +19,23 @@ mode: 0440 - name: Enabling SpamAssassin Auto Update - command: zmlocalconfig -e antispam_enable_rule_updates=true + command: ./zmlocalconfig -e antispam_enable_rule_updates=true + args: + chdir: /opt/zimbra/bin/ become: true become_user: zimbra - name: Enabling Amavis to restart when the rules are update - command: zmlocalconfig -e antispam_enable_restarts=true + command: ./zmlocalconfig -e antispam_enable_restarts=true + args: + chdir: /opt/zimbra/bin/ become: true become_user: zimbra - name: Enabling SpamAssassin rule compilation - command: zmlocalconfig -e antispam_enable_rule_compilation=true + command: ./zmlocalconfig -e antispam_enable_rule_compilation=true + args: + chdir: /opt/zimbra/bin/ become: true become_user: zimbra