14 lines
331 B
YAML
14 lines
331 B
YAML
---
|
|
- name: install Systemd-resolved
|
|
ansible.builtin.yum:
|
|
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
|
|
state: started
|
|
enabled: true
|
|
become: true
|