From a2bc6b9824a8de4e60cb4a7613cc51c851ada2c2 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 21 Oct 2023 15:20:07 +0200 Subject: [PATCH] enable systemd-resolved everywhere --- tasks/main.yml | 1 - tasks/systemd-resolved.yml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8840d28..d0da10a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,6 @@ ansible.builtin.include_tasks: hosts.yml - name: Inclide systemd-resolved ansible.builtin.include_tasks: systemd-resolved.yml - when: ansible_os_family == "RedHat" - name: Include tasks.sysctl ansible.builtin.include_tasks: tasks.sysctl.yml - name: Include wol diff --git a/tasks/systemd-resolved.yml b/tasks/systemd-resolved.yml index 7230598..a4ef167 100644 --- a/tasks/systemd-resolved.yml +++ b/tasks/systemd-resolved.yml @@ -4,6 +4,7 @@ name: systemd-resolved state: present become: true + when: ansible_os_family == "RedHat" or ansible_os_family == "Debian" - name: enable Systemd-resolved ansible.builtin.service: name: systemd-resolved