ansible-playbooks/dns/dns-master.yml

15 lines
499 B
YAML
Raw Normal View History

2014-01-11 17:45:36 +00:00
---
- user: root
2014-01-11 17:47:14 +00:00
hosts: dns-master
2014-01-11 17:45:36 +00:00
gather_facts: no
tasks:
- 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
2014-01-11 18:32:04 +00:00
file: path=/etc/namedb/dns-infrastructure owner=bind group=bind state=directory recurse=yes
2014-01-11 17:45:36 +00:00
notify:
- reload nameserver daemon
handlers:
- name: reload nameserver daemon
action: service name=named state=reloaded