diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-02-16 20:54:52 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-02-16 20:54:52 +0100 |
commit | 96ced00e05b50f276841a9212ae89e018de4d92d (patch) | |
tree | b86c75fa97326dc89cc37c6dd23d294bd13eb56a /roles/ands_kaas/tasks/search.yml | |
parent | cd94e324d3401e518578d91382a2b7ee67562112 (diff) | |
download | ands-96ced00e05b50f276841a9212ae89e018de4d92d.tar.gz ands-96ced00e05b50f276841a9212ae89e018de4d92d.tar.bz2 ands-96ced00e05b50f276841a9212ae89e018de4d92d.tar.xz ands-96ced00e05b50f276841a9212ae89e018de4d92d.zip |
Updated to OpenShift 3.7 and tested
Diffstat (limited to 'roles/ands_kaas/tasks/search.yml')
-rw-r--r-- | roles/ands_kaas/tasks/search.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/ands_kaas/tasks/search.yml b/roles/ands_kaas/tasks/search.yml new file mode 100644 index 0000000..e54c42b --- /dev/null +++ b/roles/ands_kaas/tasks/search.yml @@ -0,0 +1,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_openshift_volumes + - hostvars[inventory_hostname][pvar] is defined |