summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/get-opnfv-scenario-requirements.yml
diff options
context:
space:
mode:
Diffstat (limited to 'xci/playbooks/get-opnfv-scenario-requirements.yml')
-rw-r--r--xci/playbooks/get-opnfv-scenario-requirements.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/xci/playbooks/get-opnfv-scenario-requirements.yml b/xci/playbooks/get-opnfv-scenario-requirements.yml
index 173b825e..7f10a465 100644
--- a/xci/playbooks/get-opnfv-scenario-requirements.yml
+++ b/xci/playbooks/get-opnfv-scenario-requirements.yml
@@ -23,7 +23,7 @@
tasks:
- name: Remove existing scenario directories
file:
- path: "{{ item[1] }} + '/' + {{ item[0].scenario }}"
+ path: "{{ item[1] }}/{{ item[0].scenario }}"
state: absent
with_nested:
- "{{ scenarios }}"
@@ -33,7 +33,7 @@
- name: Create scenario directories
file:
- path: "{{ role_path_default }} + '/' + item.scenario }}"
+ path: "{{ role_path_default }}/{{ item.scenario }}"
state: directory
with_items: "{{ scenarios }}"
loop_control:
@@ -83,19 +83,19 @@
loop_control:
label: "{{ item.item.scenario }}"
- - name: Determine if selected {{ OPNFV_SCENARIO }} scenario can be deployed
+ - name: Determine if selected {{ DEPLOY_SCENARIO }} scenario can be deployed
set_fact:
- deploy_scenario_on_flavor: XCI_FLAVOR in item.flavors
- when: OPNFV_SCENARIO == item.scenario
+ deploy_scenario_on_flavor: "{{ (XCI_FLAVOR in item.flavors) | ternary(True, False) }}"
+ when: DEPLOY_SCENARIO == item.scenario
with_items: "{{ scenarios }}"
loop_control:
label: "{{ item.scenario }}"
- - name: Fail if {{ XCI_FLAVOR }} is not supported in {{ OPNFV_SCENARIO }}
+ - name: Fail if {{ XCI_FLAVOR }} is not supported in {{ DEPLOY_SCENARIO }}
fail:
msg:
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- - ERROR! The {{ OPNFV_SCENARIO }} scenario does not support the {{ XCI_FLAVOR }}
+ - ERROR! The {{ DEPLOY_SCENARIO }} scenario does not support the {{ XCI_FLAVOR }}
- ''
- This is a great chance for you to contribute to XCI ;-)
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++