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:
parent
607ad23697
commit
7ff7dfe807
16 changed files with 162 additions and 3 deletions
31
_ansible/roles/acme-dns/vars/main.yml
Normal file
31
_ansible/roles/acme-dns/vars/main.yml
Normal 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
|
Reference in a new issue