enable systemd-resolved everywhere
This commit is contained in:
parent
80c92e3af1
commit
a2bc6b9824
@ -11,7 +11,6 @@
|
|||||||
ansible.builtin.include_tasks: hosts.yml
|
ansible.builtin.include_tasks: hosts.yml
|
||||||
- name: Inclide systemd-resolved
|
- name: Inclide systemd-resolved
|
||||||
ansible.builtin.include_tasks: systemd-resolved.yml
|
ansible.builtin.include_tasks: systemd-resolved.yml
|
||||||
when: ansible_os_family == "RedHat"
|
|
||||||
- name: Include tasks.sysctl
|
- name: Include tasks.sysctl
|
||||||
ansible.builtin.include_tasks: tasks.sysctl.yml
|
ansible.builtin.include_tasks: tasks.sysctl.yml
|
||||||
- name: Include wol
|
- name: Include wol
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
name: systemd-resolved
|
name: systemd-resolved
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
when: ansible_os_family == "RedHat" or ansible_os_family == "Debian"
|
||||||
- name: enable Systemd-resolved
|
- name: enable Systemd-resolved
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: systemd-resolved
|
name: systemd-resolved
|
||||||
|
Loading…
Reference in New Issue
Block a user