17 lines
366 B
YAML
17 lines
366 B
YAML
- name: Install dnsmasq
|
|
apt:
|
|
name: dnsmasq
|
|
- name: Disable systemd-resolved
|
|
systemd:
|
|
name: systemd-resolved
|
|
enabled: false
|
|
state: stopped
|
|
- name: Copy dnsmasq configuration
|
|
copy:
|
|
src: "{{ role_path }}/files/dnsmasq.conf"
|
|
dest: "/etc/dnsmasq.conf"
|
|
- name: Enable dnsmasq
|
|
systemd:
|
|
name: dnsmasq
|
|
enabled: true
|
|
state: started
|