This module is guaranteed for backward compatibility by Ansible Core team.Though we can use this module in playbooks, but this module is mostly used with the command /usr/bin/ansible, which is directly used on terminal.If data is provided with value crash, then this module will return an exception.This represents the return value on success. One acceptable parameter is data which accepts values as either pong, crash or some other string.This do not work on ICMP, but work by default on SSH or any other defined connection method.It by default return pong string, which basically means the connectivity and available Python on remote machines are good enough to work. After successful verifying the ability to login and availability of usable python on remote hosts.Given below are the few points which one should know before using it. This module does not have any special parameters or options. How does Ansible Ping works?Īnsible ping module work in very simple manner and return the success or failure in the form of a defined/default string or error, respectively. For target Windows environment, Ansible provides win_ping module and for target network devices, Ansible provides net_ping module. As Ansible playbook’s work behavior is such that it will fail on first failure occurred and will not continue even the afterwards tasks are feasible. This module should be used as a first check on your Ansible environment to identity non-accessible machines. It returns a value based on success or failure. Web development, programming languages, Software testing & othersĪfter checking these things on target remote machines. Start Your Free Software Development Course
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |