From 39a93d3980a7f7a636918d961487dd6ecc7b5ce2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 7 Mar 2022 10:24:26 +0300 Subject: [PATCH] Fix(add-dns-domain): Fix service name Service name for BIND9 is `named`. --- playbooks/roles/debian/add-dns-domain/tasks/main.yml | 2 +- playbooks/roles/debian/named/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5