When neither ANSIBLE_ROLES_PATH nor DEFAULT_ROLES_PATH environment variables are set,
ANSIBLE_ROLES_PATH is still set to defaultRolesPath. This avoid usage of ansible.cfg file, since ANSIBLE_ROLES_PATH has precedence over ansible.cfg:role_path attribute.
The proposal here is to avoid forcing ANSIBLE_ROLES_PATH when no path is provided, deferring to the ansible.cfg or ansible defaults when possible.
Adding role_path parameter in the provisioner should remains untouched.
When neither
ANSIBLE_ROLES_PATH
norDEFAULT_ROLES_PATH
environment variables are set,ANSIBLE_ROLES_PATH
is still set todefaultRolesPath
. This avoid usage ofansible.cfg
file, sinceANSIBLE_ROLES_PATH
has precedence overansible.cfg:role_path
attribute.The proposal here is to avoid forcing
ANSIBLE_ROLES_PATH
when no path is provided, deferring to theansible.cfg
or ansible defaults when possible.Adding
role_path
parameter in the provisioner should remains untouched.