cancel
Showing results for 
Search instead for 
Did you mean: 
Rabs
Mission Specialist
Mission Specialist
  • 665 Views

How to add rles and collections

Hi All,

 

I would like to know how to add roles and collections apart from the default path. I created one in the ansible.cfg, but when I run playbooks is not picking it. And also I cannot see the roles and collections I installed. It looks like is going to the defaults.

Regards,

 

Rab

0 Kudos
1 Reply
darek
Flight Engineer Flight Engineer
Flight Engineer
  • 622 Views

HI,

Take a look at: https://docs.ansible.com/ansible/6/reference_appendices/config.html#collections-paths

You probably need to declare collection_paths under [defaults] in Your ansible.cfg.

ex.

[defaults]

collections_paths = ./collections

0 Kudos
Join the discussion
You must log in to join this conversation.