Only disable stub resolver for control machines
This commit is contained in:
parent
65be11b3f1
commit
0b539463e9
|
@ -16,7 +16,10 @@
|
|||
owner: root
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
- name: Set /etc/resolv.conf symlink
|
||||
- name: Disable systemd-resolved stub resolver
|
||||
when: hostname in groups['control_infra']
|
||||
block:
|
||||
- name: Set /etc/resolv.conf symlink
|
||||
ansible.builtin.file:
|
||||
path: /etc/resolv.conf
|
||||
src: /run/systemd/resolve/resolv.conf
|
||||
|
@ -24,7 +27,7 @@
|
|||
force: true
|
||||
state: link
|
||||
|
||||
- name: Disable systemd-resolved stub resolver
|
||||
- name: Comment out DNSStubListener
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/systemd/resolved.conf
|
||||
regexp: '^#?DNSStubListener='
|
||||
|
|
Loading…
Reference in a new issue