Skip to content

Commit

Permalink
Add bash executable for cmd shell invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Welsh committed Dec 10, 2024
1 parent 8c0039d commit 8839b2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 7 additions & 5 deletions etc/kayobe/ansible/rabbitmq-reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@
tasks:
# The following services use RabbitMQ.
- name: Restart OpenStack services
ansible.builtin.shell: >-
set -o pipefail &&
systemctl -a | egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
awk '{ print $1 }' |
xargs systemctl restart
ansible.builtin.shell:
cmd: >-
set -o pipefail &&
systemctl -a | egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
awk '{ print $1 }' |
xargs systemctl restart
executable: "/bin/bash"
8 changes: 5 additions & 3 deletions etc/kayobe/ansible/stop-openstack-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
- placement
tasks:
- name: Stop OpenStack services
ansible.builtin.shell: >-
set -o pipefail &&
systemctl -a | egrep '({{ stop_service_list | join('|') }})' | awk '{ print $1 }' | xargs systemctl stop
ansible.builtin.shell:
executable: "/bin/bash"
cmd: >-
set -o pipefail &&
systemctl -a | egrep '({{ stop_service_list | join('|') }})' | awk '{ print $1 }' | xargs systemctl stop

0 comments on commit 8839b2f

Please sign in to comment.