diff options
-rw-r--r-- | roles/pf/tasks/main.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/pf/tasks/main.yml b/roles/pf/tasks/main.yml index c48c728..4adc520 100644 --- a/roles/pf/tasks/main.yml +++ b/roles/pf/tasks/main.yml @@ -3,22 +3,22 @@ --- -- name: Generate pf configuration +- name: generate pf configuration template: src: templates/pf.conf.j2 dest: /etc/pf.conf - owner: root + owner: "{{ user_root }}" group: "{{ group_root }}" - mode: "0600" + mode: 0600 -- name: Enable pf +- name: enable pf shell: /sbin/pfctl -e ignore_errors: true -- name: Restart pf +- name: restart pf shell: /sbin/pfctl -f /etc/pf.conf -- name: Test ssh connection on new pf rule +- name: test ssh connection on new pf rule wait_for: port: 22 delay: 2 |