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.
ffmyk-ansible/roles/install_bind/tasks/main.yml

25 lines
426 B
YAML

---
- name: install bind
pacman:
name: bind
state: present
- name: create named zone backup folder
file:
path: /var/named/bak
state: directory
owner: named
group: named
- name: bind config
template:
src: named.conf.j2
dest: /etc/named.conf
register: named_conf
- name: reload bind
when: named_conf.changed
systemd:
name: named.service
state: reloaded