Clone shirenn's configuration
This commit is contained in:
23
roles/bind/tasks/main.yml
Normal file
23
roles/bind/tasks/main.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Queries apt to install bind9
|
||||
apt:
|
||||
name:
|
||||
- bind9
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
notify: Restart bind
|
||||
|
||||
- name: Deploy named local configuration
|
||||
template:
|
||||
src: 'named.conf.local.j2'
|
||||
dest: '/etc/bind/named.conf.local'
|
||||
notify: Restart bind
|
||||
|
||||
- name: Deploy per-site configuration
|
||||
template:
|
||||
src: 'db.j2'
|
||||
dest: '/var/lib/bind/{{ item.name }}/db'
|
||||
with_items: '{{ bind.domains }}'
|
||||
notify: Restart bind
|
Reference in New Issue
Block a user