summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/do_apps.yml
blob: 39283b469d845fb7d90e7628ee59e739157d58b8 (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: "template.yml"
  run_once: true
  with_dict: "{{ kaas_project_apps }}"
  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 }}"
    tmpl_name: "50-kaas-pods.yml.j2"