From 4680f6089b05f139efe7f33999c52333fe693d30 Mon Sep 17 00:00:00 2001 From: James Antill Date: Tue, 1 Oct 2024 13:58:49 -0400 Subject: [PATCH] Wait for host to come back, for ipa/rabbitmq restarts. Signed-off-by: James Antill --- playbooks/vhost_reboot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index e6d3a3d4f5..640a890781 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -119,6 +119,10 @@ tasks: + - name: Wait for host to come back (ipa or rabbitmq) + local_action: wait_for port=22 delay=30 timeout=300 state=started host={{ inventory_hostname }} + when: inventory_hostname.startswith(('ipa', 'rabbitmq')) + - name: restart gssproxy if we rebooted a ipa server service: name=gssproxy state=restarted when: inventory_hostname.startswith('ipa')