# ansible skips roles alphabetically-wise

**URL:** <https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [October 21, 2016, 8:17pm UTC](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858 "2016-10-21T20:17:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Cano](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Marcos\_Cano](https://forum.ansible.com/u/Marcos_Cano)\
**Post date:** [October 21, 2016, 8:17pm UTC](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858/1 "2016-10-21T20:17:49Z")

</div>

hello I’m calling roles from a custom location ( /var/lib/jenkins/workspace/some/job/workspace/playbook.yml rather that /etc/ansible path), I’ve exporte ANSIBLE\_ROLES\_PATH env variable  
roles:

- dotnet

- aws-kinesis-agent

- aws\_cli

- monit

- nginx

Ansible then executes the following roles: dotnet, aws-kinesis-agent and aws\_cli, but skips monit and nginx role. However if I rename monit and nginx roles to something like “amonit” and “anginx”

roles:

- dotnet

- aws-kinesis-agent

- aws\_cli

- amonit

- anginx

Ansible executes them.

Also if I hardcode my roles\_path it obviously executes the roles as expected.

roles:

- /path/to/roles/dotnet

- /path/to/roles/aws-kinesis-agent

- /path/to/roles/aws\_cli

- /path/to/roles/monit

- /path/to/roles/nginx

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [October 22, 2016, 11:09am UTC](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858/2 "2016-10-22T11:09:02Z")

</div>

I've never bothered setting ANSIBLE\_ROLES\_PATH and ansible just looks  
for roles/ in the same folder  
as the playbook.

Just drop the roles/ directory next to the playbook on the jenkins  
worker and unset that variable.
