File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33# Also restarts all OpenStack services using RabbitMQ.
44
55- name : Stop OpenStack services
6- hosts : controllers:compute:storage
6+ hosts : " {{ rabbitmq_reset_service_hosts | default(' controllers:compute:storage') }} "
77 become : true
88 gather_facts : false
99 tasks :
1818 executable : " /bin/bash"
1919
2020- name : Reset RabbitMQ
21- hosts : controllers
21+ hosts : " {{ rabbitmq_reset_hosts | default(' controllers') }} "
2222 become : true
2323 gather_facts : false
2424 vars :
6969 ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl start_app'
7070
7171 - name : Wait for all nodes to join the cluster
72- ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl await_online_nodes {{ groups['controllers'] | length }}'
72+ ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl await_online_nodes {{ ansible_play_hosts | length }}'
7373
7474- name : Restart OpenStack services
75- hosts : controllers:compute:storage
75+ hosts : " {{ rabbitmq_reset_service_hosts | default(' controllers:compute:storage') }} "
7676 become : true
7777 gather_facts : false
7878 tasks :
You can’t perform that action at this time.
0 commit comments