Merge pull request 'powerdns: add tags to the tasks that install the configuration files.' (#197) from adellam/ansible-roles:master into master

This commit is contained in:
Andrea Dell'Amico 2020-05-12 15:05:48 +02:00
commit de1df44d9f
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