aboutsummaryrefslogblamecommitdiffstats
path: root/roles/pf/handlers/main.yml
blob: 85a0996280e788b68cdef601b71856a6f8447559 (plain) (tree)
1
2
3
4
5
6
7

   
                             
                                                                  

                 
                                   





                                              
                                                                 
---

- name: lint pf configuration
  ansible.builtin.command: "pfctl -nf {{ pf_configuration_file }}"

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

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