You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
389 B
21 lines
389 B
---
|
|
- name: web_server | Write Caddyfile and restart Caddy
|
|
template:
|
|
src: "etc/caddy/Caddyfile.j2"
|
|
dest: "/etc/caddy/Caddyfile"
|
|
owner: caddy
|
|
group: "{{ group }}"
|
|
mode: 0644
|
|
become: yes
|
|
notify:
|
|
- reload_caddy
|
|
|
|
- name: web_server | Allow Internet traffic
|
|
ufw:
|
|
rule: allow
|
|
port: "{{ item }}"
|
|
proto: tcp
|
|
become: yes
|
|
loop:
|
|
- '80'
|
|
- '443'
|