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 hard coded 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 or if any variables should be changed or set 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 and was able to access the configured ...