add a wait for non-001 nodes

This commit is contained in:
nazunalika 2021-03-10 01:32:15 -07:00
parent 044506accb
commit 750689b319
Signed by: label
GPG Key ID: CB6D9706D138D190
1 changed files with 9 additions and 0 deletions

View File

@ -92,6 +92,15 @@
- 25672/tcp
- 35672-35682/tcp
- name: Non-master nodes: Wait for 001 to be up first
wait_for:
host: "{{ rabbitmq_cluster_list[0] }}"
port: '5672'
delay: '15'
connect_timeout: '10'
state: started
when: "'rabbitmq001' not in inventory_hostname"
- name: Ensure RabbitMQ is running
service:
name: rabbitmq-server