blob: e390ed9d69f85a4cd640b8be69402afba250cf98 [file] [log] [blame]
Scott Baker2290b052014-05-08 10:28:22 -07001---
2# This playbook contains plays to copy configurations to destination
3- name: create maps.d directory ( and creates all intermeadiate directories )
4 #copy: src={{src_dnsredir}}/{{name}}.d dest={{dst_dnsredir_confdir}}
5 file: src={{src_dnsredir}}/{{name}}.d/maps.d dest={{dst_dnsredir_confdir}}/{{name}}.d/maps.d state=directory
6
7- name: copy map.conf
8 copy: src={{src_dnsredir}}/{{name}}.d/maps.d/map.conf dest={{dst_dnsredir_confdir}}/{{name}}.d/maps.d/map.conf
9
10- name: copy codeen_nodes.conf
11 copy: src={{src_dnsredir}}/{{name}}.d/codeen_nodes.conf dest={{dst_dnsredir_confdir}}/{{name}}.d/codeen_nodes.conf
12
13- name: copy node-to-ip.txt
14 copy: src={{src_dnsredir}}/{{name}}.d/node-to-ip.txt dest={{dst_dnsredir_confdir}}/{{name}}.d/node-to-ip.txt
15
16- name: copy dnsredir config file
17 copy: src={{src_dnsredir}}/{{name}}.conf dest={{dst_dnsredir_conf}}/{{name}}.conf
18 notify: restart dnsredir
19