Run ansible inside try except block