Chapter 8. Extending Ansible

Ansible takes the kitchen sink approach to functionality. There are nearly 300 modules available for use within Ansible at the time of writing this book. In addition, there are numerous callback plugins, lookup plugins, filter plugins, and dynamic inventory plugins. Even with all of that functionality, there still can 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

Developing modules

Modules are the workhorses of Ansible. They provide just enough abstraction to enable playbooks to be stated simply and clearly. There are nearly 150 core modules maintained by the ...

Get Mastering Ansible 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.