plugin py_pkgs.py does not adhere to normal ansible variable precedence rules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Normally when overriding a variable this is done using /etc/openstack_
This seems not to be the case for the py_pkgs plugin as it traverses the folders in it's own order and stops on first hit which will be whatever is defined in the file defaults/
A temporary workaround is to fork the standard repo to make changes in default values instead of using the local overrides.
Example:
In the ocata branch of openstack-ansible we try to override the swift3 package by changing the variable swift_swift3_
Result:
The play runs with the default value defined in defaults/
Expected result:
The play should accept the override made in user_variables.yml.
A thought for improvement is that the script should read the folders either in reverse order and stop on first hit alternatively update the value if found in a later file instead of stopping on first hit.
Order of precedence:
3. /opt/openstack-
2. /etc/ansible/roles
1. /etc/openstack_
The lookup is indeed behaving different as you might expect, could you check the following documentation, please?
https:/ /docs.openstack .org/openstack- ansible/ latest/ user/source- overrides/ index.html# overriding- other-upstream- projects- source- code