I have a Rackspace instance that I use for testing. I am using a seperate user for running Ansible, and due to my SSH configuration update tasks, if I notify the "restart ssh" task when needed, later tasks are failed due to a SSH connection error.

Is there a way to schedule a handler to be executed when the playbook execution is completed?


It's hard to say given the little information of your setup, but there is a post_task feature that might do what you want. I couldn't find a terribly in depth description of its functionality, but you can find it mentioned in the Ansible Playbook documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.