Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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