blob: 9c57128cc614d3aa5b5bb3011620d6d2cb53a66e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
- name: "Process KaaS apps"
include_tasks: "do_app.yml"
run_once: true
with_dict: "{{ kaas_project_apps | default({}) }}"
loop_control:
loop_var: appitem
when:
- appitem.value.provision | default(true)
- (configure_app == ands_none) or (appname == configure_app)
- appname | match(kaas_app_regexp | default('.*'))
vars:
app: "{{ kaas_project_config[appitem.key] }}"
appname: "{{ app.name | default(appitem.key) | regex_replace('_','-') }}"
# appname: "{{ app.name | default((app.pods.keys() | list)[0]) }}"
options: "{{ app.options | default({}) }}"
delete: "{{ options.delete | default(true) }}"
instantiate: "{{ appitem.value.instantiate | default(false) }}"
load: "{{ app.load | default(false) }}"
pods: "{{ app.pods | default({}) }}"
builders: "{{ app.builders | default({}) }}"
parameters: "{{ app.parameters | default({}) }}"
configure_app: "{{ ands_configure_app | default(ands_none) }}"
|