diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2020-07-13 20:13:37 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2020-07-13 20:13:37 +0200 |
commit | 0770902855015510b976fc53e2ef674886095bf7 (patch) | |
tree | d23aeff65d2ee5adc7fff893cd0a7c9df21d6cd2 /roles/dnsserver/tasks | |
parent | 6c19c97e29355882bd302c225a662e131b38893a (diff) | |
download | playbooks-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.yml | 4 |
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 |