add resolv.conf task
image-deploy.yaml / build-push-image (push) Successful in 49s

This commit is contained in:
Márcio Fernandes committed 2026-10-05 12:49:00 +00:00
1 parent 53a243a9a8
commit 6f3911a433
3 files changed
+41

No files matched your search

@@ -0,0 +1,17 @@
# source https://oneuptime.com/blog/post/2026-02-21-how-to-use-ansible-to-manage-etc-resolv-conf/view
# vars:
# resolv_conf:
# nameservers:
# - x.x.x.x
# search_domains:
# - local.lan
- name: Deploy resolv.conf
ansible.builtin.template:
src: templates/resolv.conf.j2
dest: /etc/resolv.conf
mode: '0644'
when: "resolv_conf is defined"
# todo tasks:
# systemd-resolvd:systemctl restart systemd-resolved
# clear cache: resolvectl flush-caches