# run_once_cmp_db_docker: disabled

- name: "For '{{ application_id }}': Set database_application_id (Needed due to lazzy loading issue)"
  set_fact:
    database_application_id: "{{ application_id }}"

- name: "For '{{ application_id }}': Load database variables"
  include_vars: "{{ item }}"
  loop:
    - "{{ DOCKER_VARS_FILE }}"    # Important to load docker variables first so that database can use them
    - "{{ DATABASE_VARS_FILE }}"  # Important to load them before docker role so that backup can use them

- name: "For '{{ application_id }}': Load central RDBMS"
  include_role:
    name: cmp-rdbms

- name: "For '{{ application_id }}': Load cmp-docker-oauth2"
  include_role:
    name: cmp-docker-oauth2