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