From 7462c9d247fcdaaf6c5d9f11238254f0a37febcc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 1 Dec 2018 16:07:19 +0800 Subject: Port to Ansible 2.7 --- roles/mail/tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'roles/mail') 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 -- cgit v1.2.2