summaryrefslogtreecommitdiffstats
path: root/roles/amavis/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/amavis/tasks')
-rw-r--r--roles/amavis/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/amavis/tasks/main.yml b/roles/amavis/tasks/main.yml
index 6965c07..da1f86a 100644
--- a/roles/amavis/tasks/main.yml
+++ b/roles/amavis/tasks/main.yml
@@ -35,12 +35,16 @@
state=directory
owner=root group=root
mode=0755
+ when: "'out' in group_names"
+ tags:
+ - genkey
- name: Generate a private key for DKIM signing
command: genkeypair.sh dkim --privkey=/var/lib/dkim/20140703.fripost.org.key -t rsa -b 1024
register: dkim
changed_when: dkim.rc == 0
failed_when: dkim.rc > 1
+ when: "'out' in group_names"
notify:
- Restart Amavis
- Publish the public key to the DNS zone