summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_kaas/tasks')
-rw-r--r--roles/ands_kaas/tasks/do_project.yml5
-rw-r--r--roles/ands_kaas/tasks/project.yml2
2 files changed, 4 insertions, 3 deletions
diff --git a/roles/ands_kaas/tasks/do_project.yml b/roles/ands_kaas/tasks/do_project.yml
index e64e9e3..af078cd 100644
--- a/roles/ands_kaas/tasks/do_project.yml
+++ b/roles/ands_kaas/tasks/do_project.yml
@@ -7,7 +7,8 @@
run_once: true
vars:
script: "{{ kaas_project_script }}"
- when: kaas_project_script is defined
+ when:
+ - kaas_project_script != ands_none
- block:
- name: Configure storage
@@ -23,5 +24,5 @@
include_tasks: do_apps.yml
run_once: true
when:
- - kaas_project_script is undefined
+ - kaas_project_script == ands_none
diff --git a/roles/ands_kaas/tasks/project.yml b/roles/ands_kaas/tasks/project.yml
index 2c05afd..0376477 100644
--- a/roles/ands_kaas/tasks/project.yml
+++ b/roles/ands_kaas/tasks/project.yml
@@ -63,4 +63,4 @@
kaas_project_gids: "{{ kaas_project_config.gids | default(kaas_openshift_gids) }}"
kaas_project_uids: "{{ kaas_project_config.uids | default(kaas_openshift_uids) }}"
kaas_blockvol_info: "{{ block_info }}"
- kaas_project_script: "{{ kaas_project_config.oc | default(omit) }}"
+ kaas_project_script: "{{ kaas_project_config.oc | default(ands_none) }}"