diff --git a/playbooks/resolvconf.yml b/playbooks/resolvconf.yml index 03d4ce3..66e5914 100644 --- a/playbooks/resolvconf.yml +++ b/playbooks/resolvconf.yml @@ -46,4 +46,11 @@ service: name: systemd-resolved state: restarted - #when: systemd_resolved_conf.changed \ No newline at end of file + #when: systemd_resolved_conf.changed + + - name: Force link /etc/resolv.conf to systemd-resolved stub + ansible.builtin.file: + src: /run/systemd/resolve/stub-resolv.conf + dest: /etc/resolv.conf + state: link + force: yes # перебьет файл, созданный Proxmox \ No newline at end of file