system/tasks/systemd-resolved.yml

14 lines
331 B
YAML
Raw Normal View History

2023-02-27 19:49:41 +00:00
---
- name: install Systemd-resolved
ansible.builtin.yum:
name: systemd-resolved
state: present
2023-04-26 19:58:09 +00:00
become: true
2023-10-21 13:20:07 +00:00
when: ansible_os_family == "RedHat" or ansible_os_family == "Debian"
2023-02-27 19:49:41 +00:00
- name: enable Systemd-resolved
ansible.builtin.service:
name: systemd-resolved
state: started
enabled: true
2023-04-26 19:58:09 +00:00
become: true