openstack-ansible/releasenotes/notes/config_overrides_dict_key_v...

35 lines
882 B
YAML

---
issues:
- |
With recent changes to config_template module, it is not possible
anymore to have variables as dictionary keys in overrides. Example below
will not be renderred properly:
.. code-block:: yaml
config_overrides:
"{{ inventory_hostname }}":
cruel: world
This limitation boils down to Ansible design and will be true for any other
module as well.
In order to overcome it, you can transform the dictionary to a Jinja2 format:
.. code-block:: yaml
config_overrides: |-
{{
{
inventory_hostname: {
'cruel': 'world'
}
}
}}
fixes:
- |
Fixes format of ``ceph_conf_overrides_rgw`` variable by converting override
dictionary to Jinja2 format to workaround Ansible limitation on usage of
variables as keys in dictionary.