Chapter 8. Extending Ansible

Ansible takes the kitchen sink approach to functionality. There are over 800 modules available for use within Ansible at the time of writing this. In addition, there are numerous callback plugins, lookup plugins, filter plugins, and dynamic inventory plugins. Even with all of that functionality, there can still exist a need to add new functionality.

This chapter will explore the following ways in which new capabilities can be added to Ansible:

  • Developing modules
  • Developing plugins
  • Developing dynamic inventory plugins
  • Contributing code to the Ansible project

Developing modules

Modules are the workhorse of Ansible. They provide just enough abstraction that enables playbooks to be stated simply and clearly. There are over 100 ...

Get Mastering Ansible - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.