homeserver-iac/roles/networking/nameserver/tasks/main.yml
dogeystamp b7013cc53a
fix details
playbook has now run on real hardware
2023-09-10 19:25:29 -04:00

23 lines
444 B
YAML

- name: Install nameserver packages
community.general.pacman:
name: bind
state: present
- name: Configure nameserver
template:
src: named.conf.j2
dest: /etc/named.conf
notify: Restart nameserver
- name: Add nameserver zone
template:
src: local_zone.j2
dest: "/var/named/{{ dyndns_domain }}"
notify: Restart nameserver
- name: Enable nameserver
service:
name: named
enabled: yes
state: started