blob: 698acae6b8cbeb44379e2059a1a7cf72e6b27e71 (
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 is 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) }}"
|