Hello,
I think that maybe (but not sure) the ansible.cfg generated on ch07s08 is slightly wrong.
This is being generated in ansible.cfg for collections location with lab start role-collections:
collections_paths=./collections:~/.ansible/collections:/usr/share/ansible/collections
But using the ansible to generate a commented out example file:
ansible-config init --disabled -t all > /home/student/ansible.cfg
Then search inside for collections_ the variable inside is the following "collections_path" instead of "collections_paths":
[student@workstation ~]$ cat ansible.cfg | grep collections_
;collections_path=~/.ansible/collections:/usr/share/ansible/collections
Also another question if I do use ./collections as directory, the "redhat" folder should not be created directly under ./collections instead of ./collections/ansible_collections/?
Thanks
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.