From 82acba525db3cf5af5ed34fc3a5f48e84750dfd8 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Tue, 3 Jan 2023 11:41:38 +0100 Subject: [PATCH] Lint. --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ff754ac..d9e6ed7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -95,8 +95,10 @@ - Restart dns - name: Place systemd override + when: + - ansible_service_mgr == "systemd" block: - - name: Create /etc/systemd/system/{{ dns_service }}.service.d + - name: Create service.d {{ dns_service }} ansible.builtin.file: path: /etc/systemd/system/{{ dns_service }}.service.d state: directory @@ -114,8 +116,6 @@ ansible.builtin.systemd: daemon_reload: yes changed_when: no - when: - - ansible_service_mgr == "systemd" - name: Start and enable dns ansible.builtin.service: