Install Caddy webserver on Debian
Find a file
2023-08-08 19:36:05 +02:00
defaults Update caddy to 2.7.3 2023-08-08 19:36:05 +02:00
files Format test file 2020-05-19 21:25:02 +02:00
handlers Bootstrap caddy role 2019-02-01 15:22:04 +01:00
meta Update to caddy2 2020-05-19 21:26:04 +02:00
tasks Add notify 2020-10-18 21:02:23 +02:00
templates Update to caddy2 2020-05-19 21:26:04 +02:00
tests Fix: Harmonize files by adding new line if nedded 2020-04-03 11:46:27 +02:00
LICENSE Update LICENSE to 2020 2020-05-19 21:25:29 +02:00
README.md Remove useless sentence in README example 2020-07-02 10:01:01 +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_acme: should the test page use acme or internal 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

- 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