moved notify
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
- { regexp: '^\s*listen-on \{(?:[\s\n]*(?:\d{1,3}\.){3}\d{1,3};)*[\s\n]*\};', option: "\tlisten-on { {{ ansible_default_ipv4.address }}; };"}
|
- { regexp: '^\s*listen-on \{(?:[\s\n]*(?:\d{1,3}\.){3}\d{1,3};)*[\s\n]*\};', option: "\tlisten-on { {{ ansible_default_ipv4.address }}; };"}
|
||||||
- { regexp: '^\s*listen-on-v6 \{[\s\n]*any;[\s\n]*\};', option: "\tlisten-on-v6 { {{ ansible_default_ipv6.address }}; };"}
|
- { regexp: '^\s*listen-on-v6 \{[\s\n]*any;[\s\n]*\};', option: "\tlisten-on-v6 { {{ ansible_default_ipv6.address }}; };"}
|
||||||
- { regexp: '^\s*listen-on-v6 \{(?:[\s\n]*[\da-z:]*;)[\s\n]*\};', option: "\tlisten-on-v6 { {{ ansible_default_ipv6.address }}; };"}
|
- { regexp: '^\s*listen-on-v6 \{(?:[\s\n]*[\da-z:]*;)[\s\n]*\};', option: "\tlisten-on-v6 { {{ ansible_default_ipv6.address }}; };"}
|
||||||
|
notify: restart_named
|
||||||
|
|
||||||
- name: nameserver | bind | basic configuration cont'd
|
- name: nameserver | bind | basic configuration cont'd
|
||||||
lineinfile:
|
lineinfile:
|
||||||
@@ -22,3 +23,4 @@
|
|||||||
line: "\tlisten-on { {{ ansible_default_ipv4.address }}; };"
|
line: "\tlisten-on { {{ ansible_default_ipv4.address }}; };"
|
||||||
insertafter: "options {"
|
insertafter: "options {"
|
||||||
validate: "{{ named_checkconf }} %s"
|
validate: "{{ named_checkconf }} %s"
|
||||||
|
notify: restart_named
|
||||||
@@ -12,7 +12,6 @@
|
|||||||
- include_tasks: configure_bind_snmpd.yml
|
- include_tasks: configure_bind_snmpd.yml
|
||||||
rescue:
|
rescue:
|
||||||
- set_fact: task_failed=true
|
- set_fact: task_failed=true
|
||||||
notify: restart_named
|
|
||||||
when: bind == true
|
when: bind == true
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|||||||
Reference in New Issue
Block a user