system/tasks/systemd-resolved.yml
2023-10-21 15:20:07 +02:00

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