From c8a4aacd359d7e90d7edd7d6cd7c8843c4e6d633 Mon Sep 17 00:00:00 2001 From: Mateusz Mojsiejuk Date: Sun, 8 Sep 2024 10:43:20 +0200 Subject: [PATCH] Fix a problem where VLAN DHCP WAN wasn't working. --- roles/single-nic-firewall/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/single-nic-firewall/tasks/main.yml b/roles/single-nic-firewall/tasks/main.yml index edb5572..3fe857b 100644 --- a/roles/single-nic-firewall/tasks/main.yml +++ b/roles/single-nic-firewall/tasks/main.yml @@ -29,6 +29,12 @@ state: started enabled: true +- name: Enable DHCP on VLAN NIC + ansible.builtin.copy: + src: vlan + dest: /etc/network/interfaces.d/ + mode: '0644' + - name: Template dnsmasq config ansible.builtin.template: src: dnsmasq.conf.j2 @@ -50,7 +56,7 @@ - name: Template nftables FW rules ansible.builtin.template: - src: nftables.conf.j2 + src: nftables.conf.j2.myown dest: /etc/nftables.conf owner: root group: root