Bootstrap caddy reverse role

This commit is contained in:
Wilfried OLLIVIER 2019-02-01 16:11:31 +01:00
commit b3169c0fcf
9 changed files with 150 additions and 0 deletions

16
tasks/main.yml Normal file
View file

@ -0,0 +1,16 @@
---
# tasks file for galaxy-caddy.reverse
- name: Push caddy template file
template:
src: reverse.caddy.j2
dest: "{{ caddy.confd }}/{{ vhost_name }}.caddy"
owner: caddy
notify: restart caddy
- name: Ensure log dir
file:
path: "{{ caddy_logs }}/{{ vhost_name }}"
state: directory
owner: caddy