1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
8 - name: install dns-server
15 ignore_errors: "{{ignore_online_errors | bool}}"
18 - name: copy bind named.conf.local config file
21 dest: "/etc/bind/named.conf.local"
26 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/named.conf.local"
27 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/named.conf.local"
28 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/named.conf.local"
29 - "default/named.conf.local"
30 notify: restart named.service
33 - name: copy bind named.conf.options config file
36 dest: "/etc/bind/named.conf.options"
41 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/named.conf.options"
42 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/named.conf.options"
43 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/named.conf.options"
44 - "default/named.conf.options"
45 notify: restart named.service
48 - name: create bind db dir
57 # for each zone do a with first found.
58 - include_tasks: configure-zones.yml
59 with_items: "{{named_zones}}"
62 when: named_zones is defined
65 - name: enable and start named.service
66 include_role: name="base/systemd/enable-and-start"
68 service_name: named.service