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.

On 21 October 2016 at 21:17, Marcos Cano <[email protected]> wrote:
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/db49b09a-546c-443d-bf34-cf3bc4d47d1e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK5eLPRRXodgGvpBHP9dfVBNOhmETUKw%3DOCLunw9ybx9P9RwoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to