Consuming and Creating Modules

Throughout this book, we have almost constantly referred to and made use of Ansible modules. We have treated these as "black boxes" – that is to say, we have just accepted that they exist and that they will work in a certain documented manner. However, one of the many great things about Ansible is that it is an open source product, and as such, not only can you view and modify its source code, but you can also write your own additions. To date, there are literally thousands of modules available for Ansible, handling everything from simple commands such as copying files and installing packages, through to configuring highly complex and bespoke networking equipment. This large array of modules has grown out of ...

Get Practical Ansible 2 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.