ansible/roles/bind-authoritative/tasks/main.yml

22 lines
373 B
YAML

---
- name: Install Bind9
apt:
update_cache: true
name: bind9
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Deploy Bind9 configuration
template:
src: bind/named.conf.local
dest: /etc/bind/named.conf.local
mode: 0644
owner: root
group: bind
- name: Reload Bind9
systemd:
name: bind9
state: reloaded