summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver/tasks/config.yml
blob: b69a6ca69be33898ff0043a4bdd6403138b2628e (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.zone
    - 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.zone
    - 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.zone
    - 117.103.247.82.in-addr.arpa.zone
    - 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.zone
    - 194.111.170.178.in-addr.arpa.zone

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