summaryrefslogtreecommitdiffstats
path: root/ansible/roles/resource-data/tasks
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-09-17 11:35:57 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-09-17 10:07:12 +0000
commit38f3b8f533159118bf393232cb341a9f8a353e82 (patch)
tree55a4fb203b195b8da00e5569d468e8cd3751ad95 /ansible/roles/resource-data/tasks
parentcef078ddcc296ddb357418f551e934c3ab5d2b34 (diff)
[ANSIBLE] Setup config file containing resources dir full path
Such config might be handy in scenarios where user defined scripts populated with offline-platform require to leverage the full path to resources directory on infra node. Change-Id: I5b4468ef7b396d2583ad64255679a29f3ff675b4 Issue-ID: OOM-2835 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/resource-data/tasks')
-rw-r--r--ansible/roles/resource-data/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/ansible/roles/resource-data/tasks/main.yml b/ansible/roles/resource-data/tasks/main.yml
index 023a160e..74e647f2 100644
--- a/ansible/roles/resource-data/tasks/main.yml
+++ b/ansible/roles/resource-data/tasks/main.yml
@@ -41,3 +41,9 @@
when:
- inventory_hostname in groups.infrastructure
- hostvars[groups.resources.0].to_be_uploaded_resources_list is defined
+
+- name: Store resources location in cfg file
+ template:
+ src: resources.cfg.j2
+ dest: "{{ resources_cfg_path }}"
+ when: inventory_hostname in groups.infrastructure