system-config/playbooks/roles/nameserver/tasks/main.yaml
James E. Blair dae1a0351c Configure opendev nameservers using ansible
Change-Id: Ie6430053159bf5a09b2c002ad6a4f84334a5bca3
2018-11-02 13:49:38 -07:00

24 lines
528 B
YAML

# Install the NSD config before installing the package because the
# default packaged config listens on all addresses therefore will
# not start.
- name: Ensure NSD config directory exists
file:
path: /etc/nsd
state: directory
- name: Install NSD config
template:
src: templates/nsd.conf.j2
dest: /etc/nsd/nsd.conf
owner: root
group: root
mode: 0444
notify: Reconfigure NSD
- name: Install packages
package:
name:
- nsd
- name: Enable NSD
service:
name: nsd
enabled: true