Add DNS infra management playbook #1.
This commit is contained in:
parent
f87e061e01
commit
875713ed37
14
dns/dns-master.yml
Normal file
14
dns/dns-master.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user