why won't this handler thing work

This commit is contained in:
citty 2021-10-15 22:20:55 -04:00
parent 62dd3230fb
commit 06b094e769
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,3 @@
- name: restart ufw
service: name=ufw state=restarted
become: yes

8
roles/web/tasks/main.yml Normal file
View File

@ -0,0 +1,8 @@
---
- name: Allow Web traffic
ufw: rule={{ item.rule }} port={{ item.port }} proto={{ item.proto }}
with_items:
- { rule: 'allow', port: '80', proto: 'tcp' }
notify:
- restart ufw
become: yes