ping - Try to connect to host, verify a usable python and return pong on success.


  • A trivial test module, this module always returns pong on successful contact. It does not make sense in playbooks, but it is useful from /usr/bin/ansible to verify the ability to login and that a usable python is configured.
  • This is NOT ICMP ping, this is just a trivial test module.


# Test we can logon to 'webservers' and execute python with json lib.
ansible webservers -m ping


This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.


This module is maintained by those with core commit privileges

For more information on what this means please read Module Support

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.