Hi list,
I upgraded ansible with the latest epel-testing version ansible-2.1.1.0-1.el7.noarch and noticed a change with the roles_path configuration.
This is my roles_path:
`
roles_path = /etc/ansible/roles:…/base/roles:./roles
`
So I expect that if I run a playbook from /vagrant/ansible/somedir it will look for roles in /vagrant/ansible/base/roles and /vagrant/ansible/somedir/roles
But it doesn’t seem to be the case anymore.
With
ansible 2.1.1.0 config file = /etc/ansible/ansible.cfg configured module search path = ['/usr/local/share/ansible_modules/']
If running a play referencing non existant role, I have
`
$ pwd
/vagrant/ansible/somedir
$ansible-playbook test.yml -v
Using /etc/ansible/ansible.cfg as config file
ERROR! the role ‘somerole’ was not found in /vagrant/ansible/somedir/roles:/vagrant/ansible/somedir:/etc/ansible/roles:/etc/base/roles:/etc/ansible/roles
`
With
`
ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/usr/local/share/ansible_modules/’]
`
Running the same play gives me:
`
$ pwd
/vagrant/ansible/somedir
$ansible-playbook test.yml -v
[WARNING]: provided hosts list is empty, only localhost is available
ERROR! the role ‘somerole’ was not found in /vagrant/ansible/somedir/roles:/vagrant/ansible/somedir:/etc/ansible/roles:…/base/roles:./roles
`
The behavior change is highlighted in yellow above.
Is this a regression ?
thanks for your explanation