Install Caddy webserver on Debian
Go to file
2020-04-03 11:46:13 +02:00
defaults Change caddy vars 2020-03-20 14:32:10 +01:00
files Format html 2020-04-03 11:46:13 +02:00
handlers Bootstrap caddy role 2019-02-01 15:22:04 +01:00
meta Add Buster to supported Debian plateforms 2019-07-08 15:49:15 +02:00
tasks No need telemetry 2020-03-20 14:32:28 +01:00
templates Update service file with some security features 2020-03-20 14:32:45 +01:00
tests Bootstrap caddy role 2019-02-01 15:22:04 +01:00
LICENSE Move LICENSE file 2019-07-25 20:34:59 +02:00
README.md Fix: readme presentation 2020-04-02 22:35:46 +02:00

galaxy-caddy

Install and update Caddy webserver on Debian

Requirements

None

Role Variables

  • caddy_home: home of caddy user
  • caddy_logs: logs directory
  • caddy_conf: conf directory
  • caddy_confd: confd directory
  • caddy_www: directory used to store websites sources
  • caddy_email: email used to register ACME/Let's Encrypt stuff
  • caddy_update: yes/no - activate caddy updates
  • test_url: url used for the test page
  • test_https: should the test page use https
  • test_name: name of the test
  • test_code: test page source code directory
  • test_www: yes/no - enable redirection from www. to .

Dependencies

None

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: galaxy-caddy, test_url: test.io }

Run tests

Needs galaxy-vagrant to run tests

Ensure galaxy-vagrant is up

ansible-playbook -i tests/inventory tests/test.yml