This role disables systemd-resolved and create the file /etc/resolv.conf
Any Linux with systemd.
disableresolved_template: resolv.conf.j2
disableresolved_header: "# CREATED WITH ANSIBLE"
disableresolved_nameservers:
- 8.8.8.8
- 9.9.9.9
None
- hosts: localhost
roles:
- role: disableresolved
vars:
disableresolved_nameservers:
- 192.168.0.1
GPL-3.0
Wolfgang Hotwagner (https://www.ait.ac.at)