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
|
||||||
- name: reload pf
|
command:
|
||||||
command: /sbin/pfctl -f /etc/pf.conf
|
argv:
|
||||||
|
- /sbin/pfctl
|
||||||
|
- -f
|
||||||
|
- /etc/pf.conf
|
||||||
|
|
|
@ -1,23 +1,22 @@
|
||||||
---
|
---
|
||||||
|
- name: Copy pf.conf
|
||||||
- name: copy pf.conf
|
ansible.builtin.copy:
|
||||||
copy:
|
|
||||||
src: "{{ firewall_src }}"
|
src: "{{ firewall_src }}"
|
||||||
dest: /etc/pf.conf
|
dest: /etc/pf.conf
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
validate: pfctl -N -f %s
|
validate: pfctl -N -f %s
|
||||||
notify: reload pf
|
notify: Reload pf
|
||||||
when: firewall_src is defined
|
when: firewall_src is defined
|
||||||
|
|
||||||
- name: create pf.conf from template
|
- name: Create pf.conf from template
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: pf.conf.j2
|
src: pf.conf.j2
|
||||||
dest: /etc/pf.conf
|
dest: /etc/pf.conf
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
validate: pfctl -N -f %s
|
validate: pfctl -N -f %s
|
||||||
notify: reload pf
|
notify: Reload pf
|
||||||
when: firewall_src is not defined
|
when: firewall_src is not defined
|
||||||
|
|
Loading…
Add table
Reference in a new issue