Ansible Modules for Host Connectivity and Command Execution
Check Host Reachability and Execute Commands Check Host Network Connectivity <span>ansible.builtin.ping</span>: • <span>data</span>: The content returned when the module executes successfully (default is <span>pong</span>, and when <span>data=crash</span>, the module will always be treated as a failure) – name: Host test ansible.builtin.ping: data: "Host OK!" – name: Induce an exception to see what happens ansible.builtin.ping: data: … Read more