fix: disable systemd-resolved before installing dnsmasq

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2022-11-17 10:44:17 +01:00
parent be57907d55
commit a86eac38f0
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -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
ansible.builtin.apt:
name: dnsmasq