sys-svc-dnsΒΆ
DescriptionΒΆ
Bootstrap and maintain DNS prerequisites for your web stack on Cloudflare.
This role validates credentials and (by default) ensures:
A (and optional AAAA) records on the apex (
@) for all base SLD domainsWildcard A/AAAA records (
*.parent) for parent hosts viasys-dns-wildcards(Optional) CAA records for Letβs Encrypt (kept as a commented block you can re-enable)
Runs once per play and is safe to include in stacks that roll out many domains.
OverviewΒΆ
This role cloudflare DNS bootstrap: parent host A/AAAA (and optional CAA), runs once per play.
CosmosΒΆ
The diagram places sys-svc-dns in the Infinito.Nexus cosmos: the components it deploys (capabilities), the central services it consumes (dependencies), and its outward reach (federation and bridged external networks).
flowchart LR
subgraph role [sys-svc-dns π»]
svc_svc_dns["svc-dns"]
end
Solid 1:1 edges are fixed relationships; dashed 0..1 edges are conditional (enabled only in matching deployments); red 0..0 edges are turned off in this role. Node markers show the roleβs deploy modes (π» host, π³ compose, π swarm); β marks a service that is explicitly turned off, and βοΈ an Ansible role dependency declared in meta/main.yml.
FeaturesΒΆ
Automated provisioning: Configured by Ansible without manual steps.
What it doesΒΆ
Validate the Cloudflare API token (
API.cloudflare.api_token) is present (early fail if missing).Ensure apex A/AAAA exist for every base SLD in
SYS_SVC_DNS_BASE_DOMAINS:Writes
@Β Aβnetworks.internet.ip4Writes
@ AAAAβnetworks.internet.ip6(only if global and present)
(Optional) CAA records for all base SLDs (commented in the tasks; enable if you want CAA managed here).
Ensure wildcard parent DNS exists (
*.parentderived from children):Delegates to
sys-dns-wildcardsCreates
A(andAAAAif enabled) wildcard records on the Cloudflare zone, optionally proxied.
Parent hosts example:
c.wiki.example.comβ parentwiki.example.com(plusexample.comapex)
CreditsΒΆ
Implemented by Kevin Veen-Birkenbach. Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).