aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dns/tasks/main.yml')
-rw-r--r--roles/dns/tasks/main.yml9
1 files changed, 6 insertions, 3 deletions
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`