add nftables config and deployment tasks for resolv-dns host

This commit is contained in:
June 2025-04-18 15:54:32 +02:00
commit 024cec9401
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
2 changed files with 46 additions and 0 deletions

View file

@ -4,6 +4,26 @@
roles:
- base_config
- name: Ensure nftables configuration
hosts: resolv-dns
tasks:
- name: deploy nftables config
ansible.builtin.copy:
src: "resources/{{ inventory_hostname }}/files/nftables.conf"
dest: /etc/nftables.conf
owner: root
group: root
mode: "0644"
notify: Restart nftables service
become: true
handlers:
- name: Restart nftables service
ansible.builtin.service:
name: nftables
state: restarted
become: true
- name: Deploy DHCP server
hosts: dhcp
tasks: