robotmay / ansible-role-caddy

Ansible role to install and configure Caddy proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caddy

Galaxy Build Status

Install Caddy with a basic config set to include conf.d/*.conf. Roles that wish to use Caddy should place their config file in that directory with a .conf extension.

Requirements

None.

Role Variables

Name Default Value Description
caddy_user caddy Caddy user.
caddy_group caddy Caddy group.
caddy_service_name caddy Name of the service for starting/stopping/enabling.
caddy_default_port 80 Default port Caddy will bind to.
caddy_log_path /var/log/caddy Path to Caddy logs.
caddy_config_path /etc/caddy Path to Caddy config.
caddy_config_file caddy.conf Name of the Caddy config file.
caddy_root /usr/share/caddy Path to the default root served by Caddy.
caddy_force_update no Whether or not to replace an existing caddy binary with a newly downloaded one. By default, if a a caddy binary exists, it will not be replaced.
caddy_license_type personal Caddy license type. More information here
caddy_download_custom_build no Whether to download a custom build or a static build. If no, caddy_version is used in the URL. If yes, the URL is created based on the list of caddy_plugins and system architecture.
caddy_plugins [see defaults/main.yml] List of Caddy options to add when building a custom Caddy binary.

Dependencies

None

Example Playbook

- hosts: all
  roles:
     - samdoran.caddy

License

Apache 2.0

About

Ansible role to install and configure Caddy proxy


Languages

Language:HTML 62.7%Language:Shell 37.3%