Using Ansible Assert module verify BGP & OSPF neighbours. Also use ping with Ansible loop to verify connectivity which requires the use of the include_tasks module.
No download links available.