first commit
This commit is contained in:
commit
04d35ca0a3
6 changed files with 118 additions and 0 deletions
23
roles/bind/tasks/main.yaml
Normal file
23
roles/bind/tasks/main.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
|
||||
- name: bind_install
|
||||
apt:
|
||||
name:
|
||||
- bind9
|
||||
- dnsutils
|
||||
install_recommends: no
|
||||
|
||||
- name: bind_config
|
||||
template:
|
||||
dest: /etc/bind/named.conf
|
||||
src: named.conf.j2
|
||||
notify:
|
||||
- bind_restart
|
||||
|
||||
- name: bind_zones
|
||||
template:
|
||||
dest: "/var/cache/bind/{{ item.key }}.zone"
|
||||
src: zone.j2
|
||||
loop: "{{ bind_zones | dict2items }}"
|
||||
notify:
|
||||
- bind_restart
|
Loading…
Add table
Add a link
Reference in a new issue