redhat-cop / aap_configuration_template

Ansible Automation Platform Configuration as Code examples template
MIT License
55 stars 33 forks source link

settings are not merged between all and env #46

Closed laurent-indermuehle closed 8 months ago

laurent-indermuehle commented 9 months ago

When I set controller_settings_all and controller_settings_dev, only the last value wins. I was expended the variables to be merged.

For instance;

controller_settings_all:
  settings:
    GALAXY_IGNORE_CERTS: true
    AUTH_BASIC_ENABLED: true

controller_settings_dev:
  settings:
    TOWER_URL_BASE: https://aap-control-dev.example.com

When using: controller_settings: "{{ controller_settings_all | combine(controller_settings_dev, list_merge='append') }}" Then control_settings become:

settings:
  TOWER_URL_BASE: https://aap-control-dev.example.com

I was expecting:

settings:
  GALAXY_IGNORE_CERTS: true
  AUTH_BASIC_ENABLED: true
  TOWER_URL_BASE: https://aap-control-dev.example.com