pf: ansible-lint fixes
This commit is contained in:
parent
7c214a7792
commit
73f331291b
2 changed files with 12 additions and 10 deletions
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
|
||||
- name: reload pf
|
||||
command: /sbin/pfctl -f /etc/pf.conf
|
||||
- name: Reload pf
|
||||
command:
|
||||
argv:
|
||||
- /sbin/pfctl
|
||||
- -f
|
||||
- /etc/pf.conf
|
||||
|
|
|
@ -1,23 +1,22 @@
|
|||
---
|
||||
|
||||
- name: copy pf.conf
|
||||
copy:
|
||||
- name: Copy pf.conf
|
||||
ansible.builtin.copy:
|
||||
src: "{{ firewall_src }}"
|
||||
dest: /etc/pf.conf
|
||||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
validate: pfctl -N -f %s
|
||||
notify: reload pf
|
||||
notify: Reload pf
|
||||
when: firewall_src is defined
|
||||
|
||||
- name: create pf.conf from template
|
||||
template:
|
||||
- name: Create pf.conf from template
|
||||
ansible.builtin.template:
|
||||
src: pf.conf.j2
|
||||
dest: /etc/pf.conf
|
||||
mode: 0600
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
validate: pfctl -N -f %s
|
||||
notify: reload pf
|
||||
notify: Reload pf
|
||||
when: firewall_src is not defined
|
||||
|
|
Loading…
Add table
Reference in a new issue