summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/do_apps.yml
blob: 5883ff8a47a92b3b2af45a683f231adfd372fd21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- 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)
    - (ands_configure_app == ands_none) or (appname == ands_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({}) }}"