forked from ISTI-ansible-roles/ansible-roles
powerdns: add tags to the tasks that install the configuration files.
This commit is contained in:
parent
911781c297
commit
335b395927
|
@ -17,15 +17,17 @@
|
||||||
|
|
||||||
- name: Install the powerdns DB backend packages
|
- name: Install the powerdns DB backend packages
|
||||||
apt: pkg={{ powerdns_auth_db_pkgs }} state=present
|
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
|
- name: Install the powerdns main configuration file
|
||||||
template: src=pdns.conf dest=/etc/powerdns/pdns.conf owner=root group=root mode=0600
|
template: src=pdns.conf dest=/etc/powerdns/pdns.conf owner=root group=root mode=0600
|
||||||
notify: Restart powerdns
|
notify: Restart powerdns
|
||||||
|
tags: [ 'dns', 'powerdns', 'powerdns_conf' ]
|
||||||
|
|
||||||
- name: Install the powerdns local configuration file
|
- 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
|
template: src=pdns.local.conf dest=/etc/powerdns/pdns.d/pdns.local.conf owner=root group=root mode=0600
|
||||||
notify: Restart powerdns
|
notify: Restart powerdns
|
||||||
|
tags: [ 'dns', 'powerdns', 'powerdns_conf' ]
|
||||||
|
|
||||||
- name: Ensure that powerdns is running and enabled
|
- name: Ensure that powerdns is running and enabled
|
||||||
service: name=pdns state=started enabled=yes
|
service: name=pdns state=started enabled=yes
|
||||||
|
|
Loading…
Reference in New Issue