can ansible do BGP or OSPF troubleshooting automatically?

can ansible do BGP or OSPF troubleshooting automatically?

can it follow the steps below?

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/22166-bgp-trouble-main.html

or

https://www.cisco.com/c/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main.html