about summary refs log tree commit diff
path: root/ansible/roles/caddy/tasks/main.yml
blob: 5caaa18067661f426e74a63ec58ac0e2bb533c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: Install Caddy
  shell: |
    apt install -y debian-keyring debian-archive-keyring apt-transport-https
    curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | apt-key add -
    curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
    apt update
    apt install caddy

- name: Setup Caddy for SourceHut and Soft-Serve
  copy:
    src: Caddyfile
    dest: /etc/caddy/Caddyfile
  notify: Reload Caddy