22 lines
503 B
YAML
22 lines
503 B
YAML
---
|
|
- name: Configure Caddy for Gitea
|
|
hosts: caddy.srv.renner.uno
|
|
become: true
|
|
tasks:
|
|
- name: Add Gitea reverse proxy config
|
|
blockinfile:
|
|
path: /etc/caddy/Caddyfile
|
|
marker: "# {mark} ANSIBLE MANAGED BLOCK GITEA"
|
|
block: |
|
|
gitea.renner.uno {
|
|
reverse_proxy 10.2.40.122:3000
|
|
import cloudflare
|
|
}
|
|
notify: Reload Caddy
|
|
|
|
handlers:
|
|
- name: Reload Caddy
|
|
service:
|
|
name: caddy
|
|
state: reloaded
|