An open API service indexing awesome lists of open source software.

https://github.com/aboutbits/ansible-caddy-sites

Ansible - Caddy Sites Role
https://github.com/aboutbits/ansible-caddy-sites

ansible ansible-role caddy caddy-sites caddyserver

Last synced: about 2 months ago
JSON representation

Ansible - Caddy Sites Role

Awesome Lists containing this project

README

          

Ansible Caddy Sites Role
========================

Configure Caddy sites role.

## Role Variables

- `caddy_sites_reverse_proxy`: A list of sites, that should be configured as reverse proxy.

## Example Playbook

```yaml
- hosts: all
tasks:
- ansible.builtin.include_role:
name: ansible-caddy-sites
vars:
caddy_sites_reverse_proxy:
- domain_name: "test1.example.com"
destination_url: https://example.com
- domain_name: "test2.example.com"
destination_url: https://example.com
compression: true
headers_up:
- operation: +
field: Host
value: example.com
tls_dns:
provider: digitalocean
config: xxx
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: true
```

## Build & Publish

To build and publish the role, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.