0
0
opnxng-deploy-playbook/config-tasks/caddy.yaml

21 lines
597 B
YAML
Raw Normal View History

2023-11-06 10:39:27 +08:00
- 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