aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/tasks/main.yml
blob: e90e34810ee73a2b68500b9f59929c7623b916c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---

- 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 ssh connection on new pf rule
  ansible.builtin.wait_for:
    port: "{{ ansible_port }}"
    delay: 2
    state: started
remember that computers suck.