powerdns: add tags to the tasks that install the configuration files.

This commit is contained in:
Andrea Dell'Amico 2020-05-12 15:04:53 +02:00
parent 911781c297
commit 335b395927
1 changed files with 3 additions and 1 deletions

View File

@ -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