Fix firewall role.

pflog was creating /-i as a file because the logfile was undefined.
This commit is contained in:
Tom Alexander 2022-10-29 19:07:55 -04:00
parent a9d1e9f86a
commit 9bf06cc90e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@
- network
- sshd
- base
# - firewall
- firewall
- cpu
- ntp
- build

View File

@ -67,3 +67,11 @@
value: "{{ item.dev }}"
path: /etc/rc.conf.d/pflog
loop: "{{ pflog_conf }}"
- name: Set pflog logfile names
notify: restart pflog
community.general.sysrc:
name: "pflog_{{item.name}}_logfile"
value: "{{ item.logfile|default('/var/log/' + item.dev) }}"
path: /etc/rc.conf.d/pflog
loop: "{{ pflog_conf }}"