kolla-ansible/ansible/roles/qdrouterd/tasks/add_sasl_user.yml
Mark Goddard 10c1669364 Ansible lint: set -o pipefail when shell pipes used
Change-Id: I3d0047d24b6daf35f30bd3429428e83b448e6414
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2020-01-13 10:43:18 +00:00

20 lines
513 B
YAML

---
- name: Wait for qdrouterd is up
wait_for:
host: "{{ api_interface_address }}"
port: "{{ qdrouterd_port }}"
connect_timeout: 1
state: started
when:
- kolla_action != "config"
- name: Create qdrouterd sasl 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:
- kolla_action != "config"