summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/amavis/handlers/main.yml2
-rw-r--r--roles/amavis/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/amavis/handlers/main.yml b/roles/amavis/handlers/main.yml
index 65287e3..1abc299 100644
--- a/roles/amavis/handlers/main.yml
+++ b/roles/amavis/handlers/main.yml
@@ -1,10 +1,10 @@
---
- name: Restart ClamAV
service: name=clamav-daemon state=restarted
-- name: Publish the public key in the DNS zone
+- name: Publish the public key to the DNS zone
# See the output of 'sudo genkeypair.sh dkim --privkey=/var/lib/dkim/outgoing.fripost.org.key'
fail: "msg={{ dkim.stdout }}"
- name: Restart Amavis
service: name=amavis state=restarted
diff --git a/roles/amavis/tasks/main.yml b/roles/amavis/tasks/main.yml
index 354ade8..00e8c40 100644
--- a/roles/amavis/tasks/main.yml
+++ b/roles/amavis/tasks/main.yml
@@ -26,37 +26,37 @@
- name: Add 'clamav' to the group 'amavis'
user: name=clamav groups=amavis append=yes
register: r1
notify:
- Restart ClamAV
- Restart Amavis
- name: Create directory /var/lib/dkim
file: path=/var/lib/dkim
state=directory
owner=root group=root
mode=0755
- name: Generate a private key for DKIM signing
command: genkeypair.sh dkim --privkey=/var/lib/dkim/outgoing.fripost.org.key --dns=outgoing -t rsa -b 2048
register: dkim
changed_when: dkim.rc == 0
failed_when: dkim.rc > 1
notify:
- Restart Amavis
- - Publish the public key in the DNS zone
+ - Publish the public key to the DNS zone
tags:
- genkey
- name: Configure Amavis
template: src=etc/amavis/conf.d/50-user.j2
dest=/etc/amavis/conf.d/50-user
owner=root group=root
mode=0644
register: r3
notify:
- Restart Amavis
- meta: flush_handlers
- name: Start Amavis
service: name=amavis state=started