Add basic ansible stuff for management

acme-dns is fully handled by ansible already. All services should be
created by ansible in the end.
This commit is contained in:
Tobias Reisinger 2023-06-13 17:59:15 +02:00
parent 607ad23697
commit 7ff7dfe807
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
16 changed files with 162 additions and 3 deletions

View file

@ -0,0 +1,31 @@
acme_dns:
nsadmin: "{{ admin_email | regex_replace('@', '.') }}"
domain: "acme.serguzim.me"
records:
a: "{{ ansible_facts.default_ipv4.address }}"
db:
host: "{{ postgres.host }}"
port: "{{ postgres.port }}"
user: "{{ vault_acmedns.db.user }}"
pass: "{{ vault_acmedns.db.pass }}"
db: acme_dns
api:
port: 80
service:
domain: "{{ acme_dns.domain }}"
name: acme-dns
port: "{{ acme_dns.api.port }}"
compose:
watchtower: true
image: joohoi/acme-dns
compose_file:
services:
app:
ports:
- "53:53"
- "53:53/udp"
volumes:
- ./config:/etc/acme-dns:ro