DNS related changes

- Added hostname provisioning
- Added nsswitch.conf provisioning
- Added systemd-resolved provisioning
This commit is contained in:
sonny 2025-03-06 02:49:11 +01:00
parent 98afd559fc
commit 8d8ae8f892
18 changed files with 120 additions and 25 deletions

View file

@ -1,12 +1,10 @@
- name: Copy firewall template
- name: Copy nsswitch file
become: true
ansible.builtin.template:
src: 'templates/nftables.j2'
dest: '/etc/nftables.conf'
owner: root
group: root
src: 'nsswitch.j2'
dest: '/etc/nsswitch.conf'
mode: '0644'
notify: restart nftables
owner: root
- name: Copy ssh template
become: true