Use ansible modules for dns-master instead of sh.
This commit is contained in:
parent
bcf2ecc910
commit
d984e5f4c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue