move caddy update role into sep playbook
This commit is contained in:
parent
0f19b0a653
commit
8cbbc2cace
12
privfrontends/caddy-update.yaml
Normal file
12
privfrontends/caddy-update.yaml
Normal 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"
|
@ -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'
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user