From the course: Complete Guide to Configuration Management Using Ansible

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Providing required collections for ansible-navigator

Providing required collections for ansible-navigator - Ansible Tutorial

From the course: Complete Guide to Configuration Management Using Ansible

Providing required collections for ansible-navigator

So when you are working with ansible-navigator, providing collections is really a key part because the collections contains everything that you need to run your playbook. So how exactly does that work? Well, by default, depending on the execution environment, you will have a couple of collections included. The default execution environment is the simple one. It doesn't have so many. But if you have the supported one, you have a lot of them. You can use ansible-navigator collections to show a list of current collections. And collections are a part of the execution environment, and that is why choosing the appropriate execution environment is so important. Now if at some point you want to use a collection that is not available, you have two options. You can use ansible-navigator with the -eei option to refer to another execution environment that does have the collection. Otherwise, you can create a collections directory in the current project directory and use ansible-galaxy install to…

Contents