From b7610e0f6b98c78168e1de73a78275061bc8e8ca Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 27 Feb 2023 20:49:41 +0100 Subject: [PATCH] feat: add systemd-resolved for rocky --- tasks/main.yml | 3 +++ tasks/systemd-resolved.yml | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tasks/systemd-resolved.yml diff --git a/tasks/main.yml b/tasks/main.yml index 682688e..8840d28 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,6 +9,9 @@ ansible.builtin.include_tasks: hostname.yml - name: Include hosts 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 new file mode 100644 index 0000000..0fd3cc3 --- /dev/null +++ b/tasks/systemd-resolved.yml @@ -0,0 +1,10 @@ +--- +- name: install Systemd-resolved + ansible.builtin.yum: + name: systemd-resolved + state: present +- name: enable Systemd-resolved + ansible.builtin.service: + name: systemd-resolved + state: started + enabled: true