aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mail/tasks/main.yml')
-rw-r--r--roles/mail/tasks/main.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml
index 81afd0a..652bb72 100644
--- a/roles/mail/tasks/main.yml
+++ b/roles/mail/tasks/main.yml
@@ -49,9 +49,12 @@
state: directory
tags: opendkim
-- name: opendkim - generate domain keys
- include_tasks: dkim-genkey.yml domain={{ item }}
- with_items: "{{ mail.domains }}"
+- block:
+ - name: opendkim - generate domain keys
+ include_tasks: dkim-genkey.yml
+ vars:
+ domain: "{{ item }}"
+ with_items: "{{ mail.domains }}"
tags: opendkim
- name: opendkim - generate tables