Skip to content

Commit 8f31676

Browse files
authored
Merge pull request #1609 from jasonrayne/stackhpc/2024.1
Fix playbook failure due to invalid escaped character
2 parents 8214ee4 + 0c3938e commit 8f31676

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

etc/kayobe/ansible/rabbitmq-reset.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
register: inspection
3232

3333
- 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
3535
when: inspection.stdout == 'false'
3636

3737
- name: Wait for the {{ container_name }} container to reach state 'Running'
@@ -70,7 +70,8 @@
7070
ansible.builtin.shell:
7171
cmd: >-
7272
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)' |
7475
awk '{ print $1 }' |
75-
xargs systemctl restart
76+
xargs -r systemctl restart
7677
executable: "/bin/bash"

0 commit comments

Comments
 (0)