added API to poll ansible running state