From b622c1486a9f07311e931c09a7d64e0b899fedeb Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Fri, 25 Jan 2019 14:40:18 -0600 Subject: [PATCH] fix rabbit slow starts causing errors 'Apply rabbitmq policies' requires rabbit to be started "stderr": "Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.\nArguments given:\n\t-q -n rabbit@infra1 list_policies -p / Change-Id: I585bca0b2a8f7061c1ab9adb417d0aa1f396ea88 --- tasks/rabbitmq_restart.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/rabbitmq_restart.yml b/tasks/rabbitmq_restart.yml index 292da67b..e9875f02 100644 --- a/tasks/rabbitmq_restart.yml +++ b/tasks/rabbitmq_restart.yml @@ -15,3 +15,8 @@ - include_tasks: rabbitmq_stopped.yml - include_tasks: rabbitmq_started.yml + +- name: Wait for rabbitmq to be started + wait_for: + host: 0.0.0.0 + port: 5672