fixed inalid dns test

master
Niclas Thobaben 2021-12-27 21:43:33 +01:00
parent 9cc001f8e7
commit ec8af08f58
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Test if all defined zones are locally available and do a rollback if not
- name: "Test zone {{zone.name}}"
shell: "dig {{item.type | default('CNAME')}} {{ item.name | default('') + (item.name is defined | ternary('.', '')) + zone.name}} @localhost +short | grep -w '{{item.rdata | default('www')}}' -c"
shell: "dig {{item.type | default('CNAME')}} {{ item.name | default('') + (item.name is defined | ternary('.', '')) + zone.name}} @localhost +short"
register: dig_result
changed_when: dig_result.rc != 0
failed_when: dig_result.rc != 0

View File

@ -5,7 +5,7 @@
copy:
remote_src: true
src: /etc/bind/named.conf.local.bak
dest: /ect/bind/named.conf.local
dest: /etc/bind/named.conf.local
owner: bind
group: bind
mode: 0644