diff options
Diffstat (limited to 'roles/install_bind')
-rw-r--r-- | roles/install_bind/handlers/main.yml | 5 | ||||
-rw-r--r-- | roles/install_bind/tasks/main.yml | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/roles/install_bind/handlers/main.yml b/roles/install_bind/handlers/main.yml new file mode 100644 index 0000000..8fb0c88 --- /dev/null +++ b/roles/install_bind/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: reload bind + systemd: + name: named.service + state: reloaded diff --git a/roles/install_bind/tasks/main.yml b/roles/install_bind/tasks/main.yml index 31a833c..a7391e5 100644 --- a/roles/install_bind/tasks/main.yml +++ b/roles/install_bind/tasks/main.yml @@ -15,10 +15,4 @@ template: src: named.conf.j2 dest: /etc/named.conf - register: named_conf - -- name: reload bind - when: named_conf.changed - systemd: - name: named.service - state: reloaded + notify: reload bind |