fix: disable systemd-resolved before installing dnsmasq
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
be57907d55
commit
a86eac38f0
@ -1,4 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
- name: Ensure systemd-resolved doesn't interfere
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /etc/systemd/resolved.conf
|
||||||
|
regexp: '^DNSStubListener='
|
||||||
|
insertafter: '^[Resolve]'
|
||||||
|
line: DNSStubListener=no
|
||||||
|
|
||||||
|
- name: Restart systemd-resolved service
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: systemd-resolved
|
||||||
|
state: restarted
|
||||||
|
|
||||||
- name: Install dnsmasq
|
- name: Install dnsmasq
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: dnsmasq
|
name: dnsmasq
|
||||||
|
Loading…
Reference in New Issue
Block a user