From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Modules and collections

Modules and collections

In this video, you will learn about Ansible modules and collections. This is really one of the most important items that you will work with in Ansible. So what is a module? Well, Ansible modules provide the Ansible core functionality. So everything you do in Ansible to manage your assets, it's done by using a module. And modules provide a uniform way to run specific tasks on different environments. And that is convenient, especially when the different environments that you are managing normally are using different tools to perform the task. By using well-written Ansible modules, the Ansible user does not have to worry about optional differences between Linux distributions. The package module, for instance, can be used to install packages on Ubuntu, Red Hat as as well as all the Linux distributions. The Ansible core package comes with modules that are commonly used, but the number of modules in the Ansible core package is limited. And that is why we have Ansible content collections. So…

Contents