This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/roles/networking/nameserver/tasks/main.yml

23 lines
437 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/{{ domain }}"
notify: Restart nameserver
- name: Enable nameserver
service:
name: named
enabled: yes
state: started