infra/playbooks/20-bind.yaml

28 lines
624 B
YAML
Raw Permalink Normal View History

2024-06-11 21:24:37 +00:00
---
- name: Bind configuration
hosts: all
tasks:
2024-06-18 21:33:59 +00:00
- name: Install bind
2024-06-11 21:24:37 +00:00
ansible.builtin.apt:
name:
- bind9
- name: Install conf file
ansible.builtin.copy:
2024-06-18 21:33:59 +00:00
src: bind/named.conf.local
2024-06-11 21:24:37 +00:00
dest: /etc/bind/named.conf.local
2024-06-18 21:43:52 +00:00
owner: root
mode: '0644'
2024-06-11 21:24:37 +00:00
- name: Install zone file
ansible.builtin.copy:
2024-06-18 21:33:59 +00:00
src: bind/db.golem.linux.it
2024-06-11 21:24:37 +00:00
dest: /etc/bind/zones/db.golem.linux.it
2024-06-18 21:43:52 +00:00
owner: root
mode: '0644'
2024-06-11 21:24:37 +00:00
- name: Restart bind to apply changes
ansible.builtin.systemd:
name: bind9.service
state: restarted