Hello
We have integrated Ansible with ServiceNow to automate infrastructure provisioning & change requests but one recurring issue is how to handle approval delays gracefully. When a playbook triggers a ServiceNow change request that requires managerial / CAB approval; it often stalls the workflow. Right now; we pause the job manually / retry later but that’s not scalable in a busy DevOps pipeline.
We are looking for ways to design the workflow to wait intelligently for approval perhaps using polling, webhooks / custom middleware that checks the ticket status & resumes the playbook only when it’s approved. Has anyone implemented this with success?
Ideally; we would like to avoid complex hacks or custom scripts unless absolutely necessary. I have checked RedHat Ansible integration with ServiceNow - ServiceNow Community guide related to this.
This led us to review documentation on ITSM automation & while testing ideas I also came across a guide explaining What is Servicenow, which helped reframe how we think about workflow dependencies. If anyone has a reference architecture; example playbook / even tips for timeout handling we would love to learn from your approach.
Thank you !!