0
0
opnxng-deploy-playbook/setups/setup-caddy.yml
2023-11-06 10:39:27 +08:00

21 lines
597 B
YAML

- name: Check GeoLite2 file
stat:
path: "{{ docker_dir }}/caddy/GeoLite2-City.mmdb"
register: geolite
tags: never
- name: Create GeoLite2 file
command: "touch {{ docker_dir }}/caddy/GeoLite2-City.mmdb"
when:
- not geolite.stat.exists
tags: never
# ----------------------------------------------------------------------------------------------------
- name: Set up Caddyfile
template:
src: "conf/Caddyfile.j2"
dest: "{{ docker_dir }}/caddy/Caddyfile"
owner: 1000
group: 1000
mode: 0755