Executing modules

The ansible command is the main command that drives the execution of the different modules on the remote hosts. Modules are libraries that can be executed directly on remote hosts. Ansible comes with a number of modules, as listed at http://bit.ly/24rU0yk. In addition to the standard modules, you can also create your own custom modules using Python. These are the modules for most common use cases and technologies. The first module we will see is a simple module called ping, which tries to connect to a host and returns pong if the host is usable.

Module documentation can also be accessed using the ansible-doc command, shown as follows: $ ansible-doc <Module-Name> $ ansible-doc ping Here, ping is one of the Ansible module ...

Get Effective DevOps with AWS - Second Edition 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.