Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

 
discard

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.