diff --git a/library/roles/powerdns-authoritative/tasks/main.yml b/library/roles/powerdns-authoritative/tasks/main.yml index 3dde36ae..e5eff498 100644 --- a/library/roles/powerdns-authoritative/tasks/main.yml +++ b/library/roles/powerdns-authoritative/tasks/main.yml @@ -17,15 +17,17 @@ - name: Install the powerdns DB backend packages apt: pkg={{ powerdns_auth_db_pkgs }} state=present - when: powerdns_auth_use_db_backend + when: powerdns_auth_use_db_backend | bool - name: Install the powerdns main configuration file template: src=pdns.conf dest=/etc/powerdns/pdns.conf owner=root group=root mode=0600 notify: Restart powerdns + tags: [ 'dns', 'powerdns', 'powerdns_conf' ] - name: Install the powerdns local configuration file template: src=pdns.local.conf dest=/etc/powerdns/pdns.d/pdns.local.conf owner=root group=root mode=0600 notify: Restart powerdns + tags: [ 'dns', 'powerdns', 'powerdns_conf' ] - name: Ensure that powerdns is running and enabled service: name=pdns state=started enabled=yes