mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
feat: coredns-nodecache
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
---
|
||||
dns_server: 192.168.8.1
|
||||
# Enable to skip apt upgrade
|
||||
skip_upgrade_packages: false
|
||||
# Enable to skip removing crufty packages
|
||||
|
@@ -21,3 +21,25 @@
|
||||
when:
|
||||
- sysctl_network.changed
|
||||
- bridge_nf_call_iptables_result.stat.exists
|
||||
|
||||
- name: network | systemd-resolved | disable
|
||||
ansible.builtin.systemd:
|
||||
name: systemd-resolved
|
||||
state: stopped
|
||||
enabled: no
|
||||
|
||||
- name: network | resolv.conf | check symlink
|
||||
ansible.builtin.stat:
|
||||
path: "/etc/resolv.conf"
|
||||
register: resolv
|
||||
|
||||
- name: network | resolv.conf | remove symlink
|
||||
ansible.builtin.file:
|
||||
path: "/etc/resolv.conf"
|
||||
state: absent
|
||||
when: resolv.stat.islnk is defined and resolv.stat.islnk
|
||||
|
||||
- name: network | resolv.conf | static files
|
||||
ansible.builtin.template:
|
||||
src: resolv.conf
|
||||
dest: /etc/resolv.conf
|
||||
|
1
server/ansible/roles/ubuntu/templates/resolv.conf
Normal file
1
server/ansible/roles/ubuntu/templates/resolv.conf
Normal file
@@ -0,0 +1 @@
|
||||
nameserver {{ dns_server }}
|
Reference in New Issue
Block a user