You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
413 B
YAML

---
- name: Install required packages
apt:
state: present
name:
- bind9
- name: Create directory for zone databases
file:
path: "{{ dns_zones_directory }}"
state: directory
- name: Enable bind9 service
systemd:
name: bind9
state: started
enabled: yes
- name: Allow dns in firewall
ufw:
rule: allow
port: 53
proto: "{{ item }}"
loop:
- tcp
- udp