system/tasks/systemd-resolved.yml
vincent 8c5e4a266b
Some checks failed
continuous-integration/drone/push Build is failing
add systemd-resolvconf for arch
2023-10-21 21:13:21 +02:00

20 lines
487 B
YAML

---
- name: Install Systemd-resolved
ansible.builtin.package:
name: systemd-resolved
state: present
become: true
when: ansible_os_family == "RedHat" or ansible_os_family == "Debian"
- name: install systemd-resolvconf
ansible.builtin.package:
name: systemd-resolvconf
state: present
when: ansible_os_family == "Archlinux"
- name: enable Systemd-resolved
ansible.builtin.service:
name: systemd-resolved
state: started
enabled: true
become: true