playbook_provision_gateway: move config files into host specific dir

This commit is contained in:
Gregor Michels 2022-11-10 01:30:26 +01:00
parent 2cc3c9457a
commit 02115216d6
9 changed files with 6 additions and 4 deletions

View File

@ -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