Configure Caddy sites role.
caddy_sites_reverse_proxy: A list of sites, that should be configured as reverse proxy.
- hosts: all
tasks:
- ansible.builtin.include_role:
name: ansible-caddy-sites
vars:
compression: true
caddy_sites_reverse_proxy:
- domain_name: "test1.example.com"
destination_url: https://example.com
- domain_name: "test2.example.com"
destination_url: https://example.com
alias:
domain: www.test1.example.com
headers_up:
- operation: +
field: Host
value: example.com
tls_dns:
provider: digitalocean
config: xxx
compression: false
caddy_sites_redirect:
- domain_name: "test1.example.com"
destination_url: https://example.com
tls_dns:
provider: digitalocean
config: xxx
- domain_name: "test2.example.com"
destination_url: https://example.com
tls_certificate:
private_key: private-key-content
certificate: certificate-content
- domain_name: "test2.example.com"
destination_url: https://example.com
permanent: trueIn order to have a verioning in place and working, create leightweight tags that point to the appropriate minor release versions.
Creating a new minor release:
git tag 1.0
git push --tagsReplacing an already existing minor release:
git tag -d 2.0
git push origin :refs/tags/2.0
git tag 2.0
git push --tags