On 19.05.16 04:59 jzarzoso wrote:

> Under my ansible.cfg I have these settings:
> 
> # environment/provisioning/ansible.cfg
> [defaults]
> hostfile = ../../controller/inventories/development
> roles_path = ../../controller/roles

Have you tried setting an absolute path here?

Is the hostfile set according to what you specify here?

> 1. The error is `ERROR! the role 'ansible' was not found in 
> /environment/provisioning/roles` Looks like it's still looking for the 
> default path without taking my ansible.cfg into consideration.
> 2. How do I print out the default configs in the terminal and debug the 
> values if what I put in the ansible.cfg has been read correctly?
> 

ansible --version states some things.

Also running a playbook with 'ansible-playbook -v" states which
configuration file is used.

I would guess it is maybe vagrant that messes these things up. Did you
call ansible directly (just for testing)?

Johannes


-- 
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/5742C9B2.10703%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to