Merge branch 'master' of adellam/ansible-roles into master

This commit is contained in:
Andrea Dell'Amico 2019-10-29 13:07:18 +01:00 committed by Gitea
commit ac63f56cc2
2 changed files with 19 additions and 4 deletions

View File

@ -1,5 +1,11 @@
--- ---
- block: - block:
- name: Stop and disable systemd-resolved
service: name=systemd-resolved state=stopped enabled=no
when:
- ansible_distribution_major_version >= '18'
- ansible_distribution_file_variety == "Debian"
- name: Get the Powerdns repo key - name: Get the Powerdns repo key
apt_key: url={{ powerdns_auth_repo_key }} state=present apt_key: url={{ powerdns_auth_repo_key }} state=present
@ -7,12 +13,10 @@
apt_repository: repo='{{ powerdns_auth_repo_data }}' state=present update_cache=yes apt_repository: repo='{{ powerdns_auth_repo_data }}' state=present update_cache=yes
- name: Install the powerdns packages - name: Install the powerdns packages
apt: pkg={{ item }} state=present apt: pkg={{ powerdns_auth_pkgs }} state=present
with_items: '{{ powerdns_auth_pkgs }}'
- name: Install the powerdns DB backend packages - name: Install the powerdns DB backend packages
apt: pkg={{ item }} state=present apt: pkg={{ powerdns_auth_db_pkgs }} state=present
with_items: '{{ powerdns_auth_db_pkgs }}'
when: powerdns_auth_use_db_backend when: powerdns_auth_use_db_backend
- name: Install the powerdns main configuration file - name: Install the powerdns main configuration file

View File

@ -33,6 +33,12 @@ allow-notify-from={%for ip in pdns_allow_notify_from %}{{ ip }}{%if not loop.las
#allow-unsigned-notify=yes #allow-unsigned-notify=yes
allow-unsigned-notify={{ pdns_allow_unsigned_notify | default('yes') }} allow-unsigned-notify={{ pdns_allow_unsigned_notify | default('yes') }}
#################################
# superslave (boolean)
#
superslave={{ pdns_i_am_superslave | default('no') }}
################################# #################################
# allow-unsigned-supermaster Allow supermasters to create zones without TSIG signed NOTIFY # allow-unsigned-supermaster Allow supermasters to create zones without TSIG signed NOTIFY
# #
@ -69,10 +75,12 @@ api-key={{ powerdns_auth_api_key | default(omit) }}
# #
# api-logfile=/var/log/pdns.log # api-logfile=/var/log/pdns.log
{% if powerdns_auth_minor == 1 %}
################################# #################################
# api-readonly Disallow data modification through the REST API when set # api-readonly Disallow data modification through the REST API when set
# #
api-readonly={{ powerdns_auth_api_readonly | default('no') }} api-readonly={{ powerdns_auth_api_readonly | default('no') }}
{% endif %}
################################# #################################
# axfr-lower-serial Also AXFR a zone from a master with a lower serial # axfr-lower-serial Also AXFR a zone from a master with a lower serial
@ -248,6 +256,9 @@ dnsupdate={{ powerdns_dnsupdate | default('no') }}
# forward-notify IP addresses to forward received notifications to regardless of master or slave settings # forward-notify IP addresses to forward received notifications to regardless of master or slave settings
# #
# forward-notify= # forward-notify=
{% if powerdns_forward_notify is defined %}
forward-notify={{ powerdns_forward_notify }}
{% endif %}
################################# #################################
# guardian Run within a guardian process # guardian Run within a guardian process