This repository has been archived on 2022-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
docker-traefik/tasks/main.yml

35 lines
670 B
YAML
Raw Normal View History

2021-10-11 09:04:57 +00:00
- name: Install Docker
2021-10-13 11:22:25 +00:00
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"