restart named and linebreak
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ named_conf_options }}" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
|
path: "{{ named_conf_options }}" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
|
||||||
state: present
|
state: present
|
||||||
line: 'statistics-file "/var/cache/bind/stats"; zone-statistics yes;'
|
line: '\tstatistics-file "/var/cache/bind/stats";\n\tzone-statistics yes;'
|
||||||
insertafter: "options {"
|
insertafter: "options {"
|
||||||
validate: /usr/sbin/named-checkconf %s
|
validate: /usr/sbin/named-checkconf %s
|
||||||
notify: restart_named
|
notify: restart_named
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
- 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