diff --git a/roles/immortal/handlers/main.yml b/roles/immortal/handlers/main.yml new file mode 100644 index 0000000..4965c9d --- /dev/null +++ b/roles/immortal/handlers/main.yml @@ -0,0 +1,3 @@ +- name: restart ufw + service: name=ufw state=restarted + become: yes \ No newline at end of file diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml new file mode 100644 index 0000000..00e1ea0 --- /dev/null +++ b/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 \ No newline at end of file