diff --git a/powerdns-authoritative/defaults/main.yml b/powerdns-authoritative/defaults/main.yml index 1f72f48e..e052af6d 100644 --- a/powerdns-authoritative/defaults/main.yml +++ b/powerdns-authoritative/defaults/main.yml @@ -22,9 +22,10 @@ powerdns_auth_db_pkgs: - 'pdns-backend-{{ powerdns_auth_db_backend }}' powerdns_auth_backend_data: + - { key: 'gpgsql-host', value: '127.0.0.1' } - { key: 'gpgsql-port', value: 5432 } - { key: 'gpgsql-dbname', value: '' } - - { key: 'dpgsql-user', value: '' } + - { key: 'gpgsql-user', value: '' } - { key: 'gpgsql-password', value: '' } - { key: 'gpgsql-dnssec', value: '' } - { key: 'gpgsql-extra-connection-parameters', value: '' } diff --git a/powerdns-authoritative/tasks/main.yml b/powerdns-authoritative/tasks/main.yml index 44b437d6..f4752a72 100644 --- a/powerdns-authoritative/tasks/main.yml +++ b/powerdns-authoritative/tasks/main.yml @@ -20,7 +20,7 @@ notify: Restart powerdns - name: Install the powerdns local configuration file - template: src=pdns.conf dest=/etc/powerdns/pdns.d/pdns.local.conf owner=root group=root mode=0600 + template: src=pdns.local.conf dest=/etc/powerdns/pdns.d/pdns.local.conf owner=root group=root mode=0600 notify: Restart powerdns - name: Ensure that powerdns is running and enabled diff --git a/powerdns-authoritative/templates/pdns.local.conf b/powerdns-authoritative/templates/pdns.local.conf index ad12394f..3909265c 100644 --- a/powerdns-authoritative/templates/pdns.local.conf +++ b/powerdns-authoritative/templates/pdns.local.conf @@ -1,4 +1,5 @@ {% if powerdns_auth_use_db_backend %} {% for bk_data in powerdns_auth_backend_data %} {{ bk_data.key }}={{ bk_data.value }} +{% endfor %} {% endif %}