60282285bd
This command can be invoked with ``kolla-ansible rabbitmq-reset-state``. This is primarily designed to be used when enabling HA queues[1]. As such, this also updates the RabbitMQ documentation to use this command. [1] https://docs.openstack.org/kolla-ansible/latest/reference/message-queues/rabbitmq.html#high-availability Change-Id: I6ad95a3618fc1a34af56657ef99ef14dc979f17a
17 lines
592 B
YAML
17 lines
592 B
YAML
---
|
|
- name: Stop the RabbitMQ application
|
|
become: true
|
|
command: "{{ kolla_container_engine }} exec rabbitmq rabbitmqctl stop_app"
|
|
|
|
- name: Reset the state of RabbitMQ
|
|
become: true
|
|
command: "{{ kolla_container_engine }} exec rabbitmq rabbitmqctl force_reset"
|
|
|
|
- name: Start the RabbitMQ application
|
|
become: true
|
|
command: "{{ kolla_container_engine }} exec rabbitmq rabbitmqctl start_app"
|
|
|
|
- name: Wait for all RabbitMQ nodes to join the cluster
|
|
become: true
|
|
command: "{{ kolla_container_engine }} exec rabbitmq rabbitmqctl await_online_nodes {{ groups['rabbitmq'] | length }}"
|