pf: Use templates for static firewall configs
This commit is contained in:
parent
c4e0029780
commit
b8f08d5aaf
5 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ unbound_zones:
|
|||
- home.foo.sh
|
||||
|
||||
# use custom firewall config
|
||||
firewall_src: pf.conf.gw_home.j2
|
||||
firewall_src: pf.conf.gw_dna.j2
|
||||
|
||||
# unbound config
|
||||
unbound_config: unbound.conf.dna.j2
|
||||
|
|
|
@ -9,5 +9,5 @@ network_vip_interfaces:
|
|||
pass: "{{ vip145_pass }}"
|
||||
|
||||
# use custom firewall and ifstated config
|
||||
firewall_src: pf.conf.gw_fsol
|
||||
firewall_src: pf.conf.gw_fsol.j2
|
||||
ifstated_config: ifstated-fsol.conf
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Copy pf.conf
|
||||
ansible.builtin.copy:
|
||||
ansible.builtin.template:
|
||||
src: "{{ firewall_src }}"
|
||||
dest: /etc/pf.conf
|
||||
mode: "0600"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue