Ensure resolved isn't stubbing out requests
This commit is contained in:
parent
2fb1b41bad
commit
9d8e443b1d
@ -2,6 +2,15 @@
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
- hosts: pik8s
|
||||
tasks:
|
||||
- name: disable systemd-resolved stub
|
||||
lineinfile: path=/etc/systemd/resolved.conf regexp="^DNSStubListener=.*" line="DNSStubListener=no"
|
||||
register: resolved_stub
|
||||
tags: [ k8s, resolved ]
|
||||
- name: restart systemd-resolved
|
||||
systemd: daemon_reload=yes name=systemd-resolved.service state=restarted
|
||||
when: resolved_stub is changed
|
||||
tags: [ k8s, resolved ]
|
||||
roles:
|
||||
- role: docker
|
||||
tags: [ k8s, docker, skip-pull ]
|
||||
|
Loading…
Reference in New Issue
Block a user