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
This commit is contained in:
Matthew Thode 2019-01-25 14:40:18 -06:00
parent edb9b2e129
commit b622c1486a
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -15,3 +15,8 @@
- include_tasks: rabbitmq_stopped.yml - include_tasks: rabbitmq_stopped.yml
- include_tasks: rabbitmq_started.yml - include_tasks: rabbitmq_started.yml
- name: Wait for rabbitmq to be started
wait_for:
host: 0.0.0.0
port: 5672