0

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?

Deniz Acay
  • 111
  • 4

1 Answers1

0

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.

Christopher Karel
  • 6,582
  • 1
  • 28
  • 34