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.

Understanding plugins

Understanding plugins

���

In this video we'll talk about plugins. So what are plugins? Well, a plugin is an extension to the Ansible code written in Python. Standard plugins are provided with Ansible and additional plugins can be added through content collections. There are different plugin types and each of these types is documented independently. You should really see them as a different category all by themselves. For an overview, you can use Ansible doc-t on your plugin type and minus-l, followed by a list of all the plugins that are available. And you will notice, there's a lot. And additional plugins can easily be added to Ansible. Do some Python programming, put it in a collection and you can use it as a plugin. Now the types are, to start with Action. Action is used behind the scenes when using modules from Ansible. So it's kind of a default plugin. Cache is used very specifically to cache inventory or facts. And that makes it you don't have to discover your inventory all the time. There's callback…

Contents