Push basic caddy config file and sync local website to remote host
Go to file
Wilfried OLLIVIER 4164ebb829 Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
defaults Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
handlers Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
meta Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
tasks Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
templates Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
LICENCE Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00
README.md Bootstrap caddy http sync role 2019-02-01 18:50:35 +01:00

README.md

galaxy-caddy.http.sync

Push config file and sync code source of a basic html site

Requirements

Caddy webserver up and running

Role Variables

  • vhost_url: vhost url
  • vhost_name: name of the vhost
  • caddy_home: path to caddy home directory
  • caddy_logs: path to caddy logs directory
  • caddy_conf: path to caddy config directory
  • caddy_confd: path to caddy confd directory
  • caddy_logs: path to caddy vhost log directory
  • caddy_www: path to caddy www dir
  • custom_errors: yes/no - use custom errors or not
  • www_redirect: yes/no - redirect www. to .

Dependencies

galaxy-caddy

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.http.sync, custom_errors: no, vhost_name: test, vhost_url: test.test, syncpath: path/to/some/directory }