Rabs

Mission Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2023
11:17 AM
- 784 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
1 Reply


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023
02:05 PM
- 741 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
Join the discussion
You must log in to join this conversation.