From: Oleg Broytman Date: Mon, 7 Mar 2022 07:24:26 +0000 (+0300) Subject: Fix(add-dns-domain): Fix service name X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=39a93d3980a7f7a636918d961487dd6ecc7b5ce2;p=ansible.git Fix(add-dns-domain): Fix service name Service name for BIND9 is `named`. --- diff --git a/playbooks/roles/debian/add-dns-domain/tasks/main.yml b/playbooks/roles/debian/add-dns-domain/tasks/main.yml index cf5e1d2..3852ed3 100644 --- a/playbooks/roles/debian/add-dns-domain/tasks/main.yml +++ b/playbooks/roles/debian/add-dns-domain/tasks/main.yml @@ -37,6 +37,6 @@ - name: Reload BIND become: true service: - name: bind9 + name: named state: reloaded when: not domain_exists.stat.exists diff --git a/playbooks/roles/debian/named/tasks/main.yml b/playbooks/roles/debian/named/tasks/main.yml index 3a70042..fa5698b 100644 --- a/playbooks/roles/debian/named/tasks/main.yml +++ b/playbooks/roles/debian/named/tasks/main.yml @@ -32,7 +32,7 @@ - name: Reload BIND become: true service: - name: bind9 + name: named state: reloaded - name: Configure resolver