Ansible lint: set -o pipefail when shell pipes used

Change-Id: I3d0047d24b6daf35f30bd3429428e83b448e6414
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
This commit is contained in:
Mark Goddard 2020-01-13 10:39:23 +00:00
parent a6cb008c54
commit 10c1669364
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@
- name: Barbican sanity - storing a secret
become: true
shell: >
set -o pipefail && \
docker exec -t barbican_api openstack \
--os-auth-url={{ openstack_auth.auth_url }} \
--os-password={{ openstack_auth.password }} \

View File

@ -9,7 +9,10 @@
- kolla_action != "config"
- name: Create qdrouterd sasl user
shell: echo {{ qdrouterd_password }} | docker exec -u root -i qdrouterd saslpasswd2 -c -p -f /var/lib/qdrouterd/qdrouterd.sasldb -u AMQP {{ qdrouterd_user }}
shell: >
set -o pipefail && \
echo {{ qdrouterd_password }} | \
docker exec -u root -i qdrouterd saslpasswd2 -c -p -f /var/lib/qdrouterd/qdrouterd.sasldb -u AMQP {{ qdrouterd_user }}
run_once: true
changed_when: true
when: