move caddy update role into sep playbook

This commit is contained in:
Arya 2023-07-09 14:21:35 +05:30
parent 0f19b0a653
commit 8cbbc2cace
Signed by: arya
GPG Key ID: 842D12BDA50DF120
3 changed files with 13 additions and 9 deletions

View File

@ -0,0 +1,12 @@
---
- name: Setup Caddy
hosts: privfrontends
roles:
- role: caddy-ansible
caddy_systemd_capabilities_enabled: true
caddy_config: "{{ lookup('template', './templates/Caddyfile.j2') }}"
caddy_user: "caddy"
caddy_home: "/var/lib/caddy"
caddy_packages: ["github.com/caddy-dns/rfc2136@master"]
# Static weekly builds of caddy with rfc2136 dns plugin
caddy_url_base: "https://cb.projectsegfau.lt/api/download"

View File

@ -13,6 +13,7 @@ services:
container_name: hyperpipe-backend container_name: hyperpipe-backend
environment: environment:
- HYP_PROXY={% if inventory_hostname == 'eu' %}proxy.piped.projectsegfau.lt{%else%}pipedproxy.{{inventory_hostname}}.projectsegfau.lt{%endif%} - HYP_PROXY={% if inventory_hostname == 'eu' %}proxy.piped.projectsegfau.lt{%else%}pipedproxy.{{inventory_hostname}}.projectsegfau.lt{%endif%}
restart: unless-stopped restart: unless-stopped
ports: ports:
- '3536:3000' - '3536:3000'

View File

@ -1,15 +1,6 @@
--- ---
- name: Setup Caddy - name: Setup Caddy
hosts: privfrontends hosts: privfrontends
roles:
- role: caddy-ansible
caddy_systemd_capabilities_enabled: true
caddy_config: "{{ lookup('template', './templates/Caddyfile.j2') }}"
caddy_user: "caddy"
caddy_home: "/var/lib/caddy"
caddy_packages: ["github.com/caddy-dns/rfc2136@master"]
# Static weekly builds of caddy with rfc2136 dns plugin
caddy_url_base: "https://cb.projectsegfau.lt/api/download"
tasks: tasks:
# This is run again so config still updates even if i dont run the role which isnt needed most of the time # This is run again so config still updates even if i dont run the role which isnt needed most of the time
- name: Copy Caddyfile - name: Copy Caddyfile