You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
IMHO include_vars should not be used because these vars have the highest priority and cannot be overridden. It is the hardest kind of hard coding. Vars in roles should not have a high priority because roles should be flexible and configurable.
include_vars should only be used in very specific circumstances when you absolutely know that something should not be configurable.
TASK [pulp.pulp_installer.pulp_common : Install dependencies for LDAP support via apt] ***
fatal: [c2d-galaxy1]: FAILED! => {"changed": false, "msg": "No package matching 'python-dev' is available"}
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
IMHO
include_vars
should not be used because these vars have the highest priority and cannot be overridden. It is the hardest kind of hard coding. Vars in roles should not have a high priority because roles should be flexible and configurable.include_vars
should only be used in very specific circumstances when you absolutely know that something should not be configurable.So for example when I use Ubuntu 22, provision will fail. Now I need to look for another Linux distribution because I cannot reconfigure the galaxy
__galaxy_ldap_packages
. Vars viainclude_vars
are very different from vars via normal defaults vars in a role. A point which I try to make from time to time see for example What's the difference between defaults and vars in an Ansible role?](https://stackoverflow.com/questions/29127560/whats-the-difference-between-defaults-and-vars-in-an-ansible-role/58078985#58078985)A better and more flexible way to do this is to use a var
pulp_galaxy_ldap_packages
:ansible_collections/pulp/pulp_installer/roles/pulp_common/vars/Debian.yml
The text was updated successfully, but these errors were encountered: