summaryrefslogtreecommitdiff
path: root/roles/install_bind/tasks/main.yml
blob: 31a833c523dd6ae872296197e1491999483e3534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- 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