- name: Install Docker
include: docker.yml
include: composer.yml
- name: Install Traefic
include: traefic.yml
#ufw route allow proto tcp from any to any port 80
- name: Allow 80
community.general.ufw:
route: true
rule: allow
proto: tcp
from: any
to: any
to_port: 80
- name: Allow 443
to_port: 443
- name: Template a file to /etc/ufw/after.rules
ansible.builtin.template:
src: after.rules.j2
dest: /etc/ufw/after.rules
owner: root
group: root
mode: '0640'
notify: "restart ufw services"