Use internal_named for resolv.conf.

This commit is contained in:
yohan 2024-10-06 13:41:42 +02:00
parent 4c4bffb891
commit 1b7f09ecbe

View File

@ -61,3 +61,27 @@
- /usr/local/docker-mounted-files/docker-internal_named/named.conf.local:/etc/bind/named.conf.local:z - /usr/local/docker-mounted-files/docker-internal_named/named.conf.local:/etc/bind/named.conf.local:z
- /mnt/volumes/var_cache_internal_named/data:/var/cache/bind:z - /mnt/volumes/var_cache_internal_named/data:/var/cache/bind:z
become: true become: true
- name: Disable OVH DNS autoconf
community.general.nmcli:
conn_name: "System eth0"
dns4_ignore_auto: true
dns4:
- 127.0.0.1
type: ethernet
state: present
become: true
- name: Remove /etc/NetworkManager/conf.d/99-cloud-init.conf
ansible.builtin.file:
path: "/etc/NetworkManager/conf.d/99-cloud-init.conf"
state: absent
register: cloud_init_removal
become: true
- name: Restarting NetworkManager
service:
name: NetworkManager
state: restarted
become: true
when: cloud_init_removal is changed