Private
Public Access
2
0

caddy: geoip first attempt

This commit is contained in:
2026-01-23 14:08:31 +03:00
parent dde28095b2
commit 06198aca2c
7 changed files with 126 additions and 1 deletions

View File

@@ -76,6 +76,15 @@
notify:
- "Restart Caddy"
# - name: Generate GeoIP config file
# when: "caddy_geoip_account_id != None and caddy_geoip_license_key != None"
# ansible.builtin.template:
# src: "templates/GeoIP.conf"
# dest: "/etc/GeoIP.conf"
# mode: "0640"
# notify:
# - "Update GeoIP databases"
- name: Enable and start Caddy
ansible.builtin.service:
name: "{{ caddy_my_name }}"