Ensure resolved isn't stubbing out requests

This commit is contained in:
Salt 2021-02-20 10:48:28 -06:00
parent 2fb1b41bad
commit 9d8e443b1d

View File

@ -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 ]