Team,
Can someone please help in solution for below requirement. I tried a lot but did not get through yet
- We want ansible playbook to test network reachability of a server followed by Power reset using IPMITOOL if Server is not reachable on network
Used ping module to rest network connectivity and ipmi_power to power on the server.
Problem is when server is not reachable on network, registering to ping output fail , hence next play do not start on failed server.
Also tried to used meta: clear_host_errors but no success
The documentation has a page on error handling
https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html
just set ignore_errors: yes on the task