why won't this handler thing work
This commit is contained in:
parent
62dd3230fb
commit
06b094e769
3
roles/immortal/handlers/main.yml
Normal file
3
roles/immortal/handlers/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
- name: restart ufw
|
||||
service: name=ufw state=restarted
|
||||
become: yes
|
8
roles/web/tasks/main.yml
Normal file
8
roles/web/tasks/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user