---
- import_role:
    name: address_controller_multitenant
  when: multitenant
- import_role:
    name: plans_standard
  when: not multitenant and address_space_type == "standard"
- import_role:
    name: plans_brokered
  when: not multitenant and address_space_type == "brokered"
- import_role:
    name: address_controller_singletenant
  when: not multitenant
- import_role:
    name: none_authservice
  when: '"none" in authentication_services'
- import_role:
    name: standard_authservice
  when: '"standard" in authentication_services'
- import_role:
    name: address_controller

---
- import_role:
    name: address_controller_multitenant
  when: multitenant
- import_role:
    name: plans_standard
  when: multitenant or (not multitenant and address_space_type == "standard")
- import_role:
    name: plans_brokered
  when: multitenant or (not multitenant and address_space_type == "brokered")
- import_role:
    name: address_controller_singletenant
  when: not multitenant
- import_role:
    name: none_authservice
  when: '"none" in authentication_services'
- import_role:
    name: standard_authservice
  when: '"standard" in authentication_services'
- import_role:
    name: address_controller

Deploy brokered and standard plans in multitenant mode
Deploy brokered and standard plans in multitenant mode
