playbook_provision_gateway: move config files into host specific dir
This commit is contained in:
parent
2cc3c9457a
commit
02115216d6
|
@ -4,11 +4,13 @@
|
|||
tasks:
|
||||
- name: configure routing tables
|
||||
copy:
|
||||
src: templates/gateways/etc/iproute2/rt_tables
|
||||
dest: /etc/iproute2/rt_tables
|
||||
src: "{{ item }}"
|
||||
dest: /etc/iproute2/
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
with_fileglob:
|
||||
- "templates/gateways/{{ inventory_hostname }}/etc/iproute2/*"
|
||||
notify:
|
||||
- reload network
|
||||
|
||||
|
@ -20,7 +22,7 @@
|
|||
group: root
|
||||
mode: 0600
|
||||
with_fileglob:
|
||||
- "templates/gateways/etc/config/*"
|
||||
- "templates/gateways/{{ inventory_hostname }}/etc/config/*"
|
||||
notify:
|
||||
- "reload {{ item | basename }}"
|
||||
|
||||
|
@ -32,7 +34,7 @@
|
|||
group: root
|
||||
mode: 0600
|
||||
with_fileglob:
|
||||
- "templates/gateways/etc/frr/*"
|
||||
- "templates/gateways/{{ inventory_hostname }}/etc/frr/*"
|
||||
notify:
|
||||
- restart frr
|
||||
|
||||
|
|
Reference in New Issue