34 lines
670 B
YAML
34 lines
670 B
YAML
- name: Install Docker
|
|
include: docker.yml
|
|
|
|
- name: Install Docker
|
|
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
|
|
community.general.ufw:
|
|
route: true
|
|
rule: allow
|
|
proto: tcp
|
|
from: any
|
|
to: any
|
|
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"
|