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/dns/tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'roles/dns') diff --git a/roles/dns/tasks/main.yml b/roles/dns/tasks/main.yml index 83cf50d..44b3d74 100644 --- a/roles/dns/tasks/main.yml +++ b/roles/dns/tasks/main.yml @@ -70,9 +70,12 @@ - debug: var=zonefiles -- name: NSD - generate zone files - include_tasks: nsd-zone.yml zonefile={{ item }} - with_items: "{{ zonefiles }}" +- block: + - name: NSD - generate zone files + include_tasks: nsd-zone.yml + vars: + zonefile: "{{ item }}" + with_items: "{{ zonefiles }}" tags: zones # NOTE: requires variable `zonefiles` -- cgit v1.2.2