File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 31
31
register : inspection
32
32
33
33
- name : Ensure the {{ container_name }} container is running
34
- ansible.builtin.command : systemctl start kolla-{{ container_name }}-container.service # noqa command-instead-of-module
34
+ ansible.builtin.command : systemctl start kolla-{{ container_name }}-container.service # noqa command-instead-of-module
35
35
when : inspection.stdout == 'false'
36
36
37
37
- name : Wait for the {{ container_name }} container to reach state 'Running'
70
70
ansible.builtin.shell :
71
71
cmd : >-
72
72
set -o pipefail &&
73
- systemctl -a | egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
73
+ systemctl list-units --type=service --all --no-legend --plain |
74
+ egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
74
75
awk '{ print $1 }' |
75
- xargs systemctl restart
76
+ xargs -r systemctl restart
76
77
executable : " /bin/bash"
You can’t perform that action at this time.
0 commit comments