]> git.somenet.org - root/pub/somesible.git/blob - roles/server/named/tasks/configure-zones.yml
roles/base/backup/files
[root/pub/somesible.git] / roles / server / named / tasks / configure-zones.yml
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>
6 #
7 ---
8 - name: copy zone {{zone}} file
9   copy:
10     src: "{{item}}"
11     dest: "/etc/bind/db/{{zone}}"
12     mode: 0644
13     owner: "root"
14     group: "root"
15   with_first_found:
16     - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/db/{{zone}}"
17     - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/db/{{zone}}"
18     - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/db/{{zone}}"
19     - "default/db/{{zone}}"
20   notify: restart named.service