aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/handlers/main.yml
blob: 5d75a1a79fc24ad84aa1181cd784bb0bd15b8fa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
- name: lint pf configuration
  command: "pfctl -nf {{ pf_configuration_file }}"

- name: enable pf
  command: pfctl -e
  register: result
  failed_when:
    - result.rc != 0
    - "'already enabled' not in result.stderr"

- name: restart pf
  command: pfctl -f "{{ pf_configuration_file }}"
remember that computers suck.