aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-01 16:07:19 +0800
committerAaron LI <aly@aaronly.me>2018-12-01 16:07:19 +0800
commit7462c9d247fcdaaf6c5d9f11238254f0a37febcc (patch)
tree395b68f335859e612b8615f6e74a7d2b05d970bc /roles/mail
parent6eb07e870565a590cc86040f7e4a7f405efdb786 (diff)
downloadansible-dfly-vps-7462c9d247fcdaaf6c5d9f11238254f0a37febcc.tar.bz2
Port to Ansible 2.7
Diffstat (limited to 'roles/mail')
-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