diff --git a/roles/nameserver/handlers/main.yml b/roles/nameserver/handlers/main.yml index bbfd24a..acdc1e8 100755 --- a/roles/nameserver/handlers/main.yml +++ b/roles/nameserver/handlers/main.yml @@ -18,6 +18,11 @@ name: "pdns" state: restarted +- name: restart_pdns_recursor + service: + name: "pdns-recursor" + state: restarted + - name: restart_mysqld service: name: "mysqld" diff --git a/roles/nameserver/tasks/install_powerdns_recursor.yml b/roles/nameserver/tasks/install_powerdns_recursor.yml index 396f7f7..b0391be 100755 --- a/roles/nameserver/tasks/install_powerdns_recursor.yml +++ b/roles/nameserver/tasks/install_powerdns_recursor.yml @@ -10,7 +10,7 @@ mode: "0644" owner: "root" group: "root" - force: no + notify: restart_pdns_recursor - name: nameserver | powerdns-recursor | disable unbound service: