41 lines
830 B
YAML
41 lines
830 B
YAML
|
---
|
||
|
- name: Install all Packages for Bind9
|
||
|
ansible.builtin.apt:
|
||
|
name:
|
||
|
- bind9
|
||
|
state: latest
|
||
|
update_cache: yes
|
||
|
|
||
|
- name: create named config
|
||
|
template:
|
||
|
src: named.conf.j2
|
||
|
dest: /etc/bind/named.conf
|
||
|
notify:
|
||
|
- restart bind9
|
||
|
|
||
|
- name: create named.local config
|
||
|
template:
|
||
|
src: named.conf.local.j2
|
||
|
dest: /etc/bind/named.conf.local
|
||
|
notify:
|
||
|
- restart bind9
|
||
|
|
||
|
- name: create named.options config
|
||
|
template:
|
||
|
src: named.conf.options.j2
|
||
|
dest: /etc/bind/named.conf.options
|
||
|
notify:
|
||
|
- restart bind9
|
||
|
|
||
|
- name: create named fftdf config
|
||
|
template:
|
||
|
src: named.fftdf.conf.j2
|
||
|
dest: /etc/bind/named.fftdf.conf
|
||
|
notify:
|
||
|
- restart bind9
|
||
|
- name: create named fftdf db
|
||
|
template:
|
||
|
src: named.fftdf.db.j2
|
||
|
dest: /etc/bind/named.fftdf.db
|
||
|
notify:
|
||
|
- restart bind9
|