Use ansible modules for dns-master instead of sh.

This commit is contained in:
staticsafe 2014-01-11 18:30:10 +00:00
parent bcf2ecc910
commit d984e5f4c2
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@
- name: update dns-infrastructure git repo
git: repo=git@bitbucket.org:staticsafe/dns-infrastructure.git dest=/etc/namedb/dns-infrastructure update=yes
- name: ensure permission correctness
shell: chown -R bind:bind /etc/namedb/dns-infrastructure
file: /etc/namedb/dns-infrastructure owner=bind group=bind state=directory recurse=yes
notify:
- reload nameserver daemon
handlers:
- name: reload nameserver daemon
action: shell service named reload
action: service name=named state=reloaded