This repo contains the Terraform, Ansible, and Capistrano configurations to deploy a static Jekyll site to multiple instances behind a LoadBalancer.
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
388 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'