feat: Manage ipforwarding
This commit is contained in:
@@ -18,3 +18,14 @@
|
||||
mode: u=rw,g=,o=
|
||||
become: true
|
||||
notify: Restart nftables.service
|
||||
|
||||
- name: Enable IP forwarding
|
||||
ansible.builtin.template:
|
||||
src: 100-ip_forwarding.conf.j2
|
||||
dest: "{{ nftables_ip_forwarding_path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
when: nftables_ip_forwarding_path | length > 0
|
||||
become: true
|
||||
notify: Enable 100-ip_forwarding.conf
|
||||
|
||||
Reference in New Issue
Block a user