Closed adborden closed 6 years ago
We've worked around the issue by overriding ANSIBLE_ROLES_PATH
:
#.kitchen.yml
provisioner:
env_vars:
ANSIBLE_ROLES_PATH: /tmp/kitchen/roles:/tmp/kitchen/roles/vendor
it is using the /tmp/kitchen/roles directory by default so doesn't use the ansible.cfg role_path
Thanks, would you clarify?
Is there something we're doing wrong or is this something kitchen-ansible won't fix?
We have an unusual setup where we vendor our third-party galaxy roles in
/roles/vendor
. In order to reference roles asuser.role-name
instead ofvendor/user.role-name
, we setroles_path = roles:roles/vendor
in ansible.cfg to make this work.Unfortunately with kitchen-ansible, it seems that in setting
ANSIBLE_ROLES_PATH
, theroles_path
in our config does not apply.