© Peter Membrey and Shaun R Smith 2022
S. R. Smith, P. MembreyBeginning Ansible Concepts and Applicationhttps://doi.org/10.1007/978-1-4842-8173-4_5

5. Batteries Included: Ansible Modules

Shaun R Smith1   and Peter Membrey2
Hong Kong, New Territories, Hong Kong
Kowloon, Hong Kong

In previous chapters, we have already used a few simple modules, namely, hostname to set the server’s hostname, apt to install nginx, shell to execute arbitrary commands, and copy to push configuration files to the server. We have looked at how we call a module and pass in arguments which tell the module what we hope to achieve.

We will now deep dive into Ansible modules to show how those simple concepts can be turned into a powerful force – by using a variety of arguments, ...

Get Beginning Ansible Concepts and Application: Provisioning, Configuring, and Managing Servers, Applications, and Their Dependencies 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.