mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
refactor: replace srv-web-7-7-dns-records with sys-dns-cloudflare-records
- removed obsolete role `srv-web-7-7-dns-records` (README, meta, tasks) - updated Gitea role to use `sys-dns-cloudflare-records` with explicit record vars - updated web-opt-rdr-www role to use new DNS role with zone detection (`to_zone`) - added REDIRECT_WWW_FLAVOR var to support "edge" flavor selection
This commit is contained in:
@@ -58,10 +58,12 @@
|
||||
|
||||
- name: Include DNS role to register Gitea domain(s)
|
||||
include_role:
|
||||
name: srv-web-7-7-dns-records
|
||||
name: sys-dns-cloudflare-records
|
||||
vars:
|
||||
CLOUDFLARE_API_TOKEN: "{{ CLOUDFLARE_API_TOKEN }}"
|
||||
cloudflare_domains: "{{ [ domains | get_domain(application_id) ] }}"
|
||||
cloudflare_target_ip: "{{ networks.internet.ip4 }}"
|
||||
cloudflare_proxied: false
|
||||
cloudflare_records:
|
||||
- zone: "{{ domains | get_domain(application_id) | to_zone }}"
|
||||
type: A
|
||||
name: "{{ domains | get_domain(application_id) }}"
|
||||
content: "{{ networks.internet.ip4 }}"
|
||||
proxied: false # Necessary for SSH port
|
||||
when: DNS_PROVIDER == 'cloudflare'
|
Reference in New Issue
Block a user