aboutsummaryrefslogblamecommitdiffstats
path: root/roles/pf/tasks/main.yml
blob: 8e81e1cf880ddc97225848f7316460cf478bcec0 (plain) (tree)
1
2
3
4
5
6
7
8
9

   
                                 
                           



                                       
                

                           

                
 
                     
                           
                      

                  
                             
---

- name: generate pf configuration
  ansible.builtin.template:
    src: pf.conf.j2
    dest: "{{ pf_configuration_file }}"
    owner: 0
    group: 0
    mode: "0600"
  notify:
    - lint pf configuration
    - enable pf
    - restart pf

- name: test pf rules
  ansible.builtin.wait_for:
    port: "{{ item }}"
    delay: 2
    state: started
  loop: "{{ pf_test_ports }}"
remember that computers suck.