Browse Source

why won't this handler thing work

master
citty 7 months ago
parent
commit
06b094e769
  1. 3
      roles/immortal/handlers/main.yml
  2. 8
      roles/web/tasks/main.yml

3
roles/immortal/handlers/main.yml

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

8
roles/web/tasks/main.yml

@ -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…
Cancel
Save