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
_ansible/roles/acme-dns/templates
31
_ansible/roles/acme-dns/templates/config.cfg.j2
Normal file
31
_ansible/roles/acme-dns/templates/config.cfg.j2
Normal file
|
@ -0,0 +1,31 @@
|
|||
[general]
|
||||
listen = "0.0.0.0:53"
|
||||
protocol = "both"
|
||||
domain = "{{ acme_dns.domain }}"
|
||||
nsname = "{{ acme_dns.domain }}"
|
||||
nsadmin = "{{ acme_dns.nsadmin }}"
|
||||
records = [
|
||||
"{{ acme_dns.domain }}. A {{ acme_dns.records.a }}",
|
||||
"{{ acme_dns.domain }}. NS {{ acme_dns.domain }}.",
|
||||
]
|
||||
debug = false
|
||||
|
||||
[database]
|
||||
engine = "postgres"
|
||||
connection = "postgres://{{ acme_dns.db.user }}:{{ acme_dns.db.pass }}@{{ acme_dns.db.host }}/{{ acme_dns.db.db }}"
|
||||
|
||||
[api]
|
||||
ip = "0.0.0.0"
|
||||
disable_registration = false
|
||||
port = "80"
|
||||
tls = "none"
|
||||
corsorigins = [
|
||||
"*"
|
||||
]
|
||||
use_header = true
|
||||
header_name = "X-Forwarded-For"
|
||||
|
||||
[logconfig]
|
||||
loglevel = "info"
|
||||
logtype = "stdout"
|
||||
logformat = "text"
|
Reference in a new issue