File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 ansible.builtin.shell :
1313 cmd : >-
1414 set -o pipefail &&
15- systemctl -a | grep -E 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
15+ systemctl -a --state=loaded | grep -E 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
1616 awk '{ print $NF }' |
1717 xargs systemctl stop
1818 executable : " /bin/bash"
6262 - name : Stop app
6363 ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl stop_app'
6464
65- - name : Force reset app
66- ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl force_reset '
65+ - name : Reset app
66+ ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl reset '
6767
6868 - name : Start app
6969 ansible.builtin.command : docker exec {{ container_name }} /bin/bash -c 'rabbitmqctl start_app'
8686 ansible.builtin.shell :
8787 cmd : >-
8888 set -o pipefail &&
89- systemctl list-units --type=service --all --no-legend --plain |
89+ systemctl list-units --state=loaded -- type=service --all --no-legend --plain |
9090 grep -E 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
9191 awk '{ print $1 }' |
9292 xargs -r systemctl restart
You can’t perform that action at this time.
0 commit comments