blob: 1cefb7d10580d19a07f61dcc168886f263bf1699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
- name: Copy static configuration
include_tasks: sync_all.yml
run_once: true
# delegate_to: "{{ groups.masters[0] }}"
with_items: "{{ lookup('pipe', search).split('\n') }}"
loop_control:
loop_var: osv_path
vars:
search: "find {{ kaas_project_path }}/files/ -type d -mindepth 1 -maxdepth 1"
osv: "{{ osv_path | basename }}"
pvar: "kaas_{{ osv }}_path"
local_path: "{{ osv_path }}"
remote_path: "{{ hostvars[inventory_hostname][pvar] }}"
when:
- osv in kaas_project_volumes
- hostvars[inventory_hostname][pvar] is defined
|