Add DNS infra management playbook #1.

This commit is contained in:
staticsafe 2014-01-11 17:45:36 +00:00
parent f87e061e01
commit 875713ed37
1 changed files with 14 additions and 0 deletions

14
dns/dns-master.yml Normal file
View File

@ -0,0 +1,14 @@
---
- user: root
host: dns-master
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
shell: chown -R bind:bind /etc/namedb/dns-infrastructure
notify:
- reload nameserver daemon
handlers:
- name: reload nameserver daemon
action: shell service named reload