summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver/tasks
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2020-07-13 20:13:37 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2020-07-13 20:13:37 +0200
commit0770902855015510b976fc53e2ef674886095bf7 (patch)
treed23aeff65d2ee5adc7fff893cd0a7c9df21d6cd2 /roles/dnsserver/tasks
parent6c19c97e29355882bd302c225a662e131b38893a (diff)
downloadplaybooks-ansible-0770902855015510b976fc53e2ef674886095bf7.tar.gz
playbooks-ansible-0770902855015510b976fc53e2ef674886095bf7.tar.xz
playbooks-ansible-0770902855015510b976fc53e2ef674886095bf7.zip
add condition for pushing zone files only on the dns master
Diffstat (limited to 'roles/dnsserver/tasks')
-rw-r--r--roles/dnsserver/tasks/config.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/dnsserver/tasks/config.yml b/roles/dnsserver/tasks/config.yml
index 0173815..81232e6 100644
--- a/roles/dnsserver/tasks/config.yml
+++ b/roles/dnsserver/tasks/config.yml
@@ -40,7 +40,7 @@
owner: root
group: named
mode: 0640
- when: dnsslavelist is defined
+ when: dnsslavelist is defined and item.ip6 == ansible_default_ipv6.address
notify: reload named
loop: "{{ zonelist }}"
tags: keys
@@ -52,7 +52,7 @@
owner: root
group: named
mode: 0640
- when: dnsslavelist is defined
+ when: dnsslavelist is defined and item.ip6 == ansible_default_ipv6.address
notify: reload named
loop: "{{ zonelist }}"
tags: keys