Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions etc/kayobe/ansible/fixes/rabbitmq-reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Also restarts all OpenStack services using RabbitMQ.

- name: Stop OpenStack services
hosts: controllers:compute:storage
hosts: "{{ rabbitmq_reset_service_hosts | default('controllers:compute:storage') }}"
become: true
gather_facts: false
tasks:
Expand All @@ -18,7 +18,7 @@
executable: "/bin/bash"

- name: Reset RabbitMQ
hosts: controllers
hosts: "{{ rabbitmq_reset_hosts | default('controllers') }}"
become: true
gather_facts: false
vars:
Expand Down Expand Up @@ -69,10 +69,10 @@
ansible.builtin.command: docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl start_app'

- name: Wait for all nodes to join the cluster
ansible.builtin.command: docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl await_online_nodes {{ groups['controllers'] | length }}'
ansible.builtin.command: docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl await_online_nodes {{ ansible_play_hosts | length }}'

- name: Restart OpenStack services
hosts: controllers:compute:storage
hosts: "{{ rabbitmq_reset_service_hosts | default('controllers:compute:storage') }}"
become: true
gather_facts: false
tasks:
Expand Down
Loading