Ansible modules take arguments in key-value pairs that look similar to
key=value, perform a job on the remote server, and return information about the job as
JSON. The key-value pairs allow the module to know what to do when requested. They can be hardcoded values, or in playbooks they can use variables, which will be covered in Chapter 2, Simple Playbooks. The data returned from the module lets Ansible know if anything changed in the managed host or if any information kept by Ansible should be changed afterwards.
Modules are usually run within playbooks, as this lets you chain many together, but they can also be used on the command line. Previously, we used the
ping command to check that Ansible had been correctly setup ...