Closed killerwhile closed 5 years ago
Hi @killerwhile, thank you for the PR. I would assume it is safe to remove the definition in https://github.com/radekg/terraform-provisioner-ansible/blob/5cc800253fb471b70cc15fce448cf6324d3f299b/types/play.go#L37-L39?
Yes, absolutely, forgot this part. I'm updating.
This looks awesome, thank you!
Summary
Addresses issue #109
When neither
ANSIBLE_ROLES_PATH
norDEFAULT_ROLES_PATH
environment variables are set,ANSIBLE_ROLES_PATH
is still set to defaultRolesPath. This avoid usage ofansible.cfg
file, sinceANSIBLE_ROLES_PATH
has precedence overansible.cfg:role_path
attribute.This PR is to avoid forcing
ANSIBLE_ROLES_PATH
when no path is provided, deferring to theansible.cfg
or ansible defaults when possible.