summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver/tasks/config.yml
blob: 6d078f79f8cfaf079e890fc6af1c9d166f4e4e3b (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
25
26
- name: Configuration de Bind
  template: src=keys.j2 dest=/etc/named.conf
            owner=root
            group=named
            mode=640
  notify: restart named

- name: Installation des fichiers de zone
  copy: src={{ item }} dest=/var/named/
            owner=root
            group=named
            mode=640
  when: ansible_default_ipv6.address == master_ipv6
  notify: reload named
  with_items:
    - casperlefantom.net.zone
    - 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.7.7.6.7.f.2.5.3.e.0.1.0.a.2.ip6.arpa
    - 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.7.7.6.7.f.2.5.3.e.0.1.0.a.2.ip6.arpa
    - 4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.7.7.6.7.f.2.5.3.e.0.1.0.a.2.ip6.arpa
    - 117.103.247.82.in-addr.arpa
    - 0.0.0.5.4.9.1.0.1.1.1.0.0.7.1.0.8.7.1.0.1.0.0.0.0.7.c.0.0.0.a.2.ip6.arpa
    - 194.111.170.178.in-addr.arpa

- name: Open listening port 53
  firewalld: service=dns permanent=true state=enabled
  when: ansible_distribution == "Fedora"