Fix panko mongo idempotency

Panko fails to create users in mongo when deploy
is executed more than once.

Change-Id: I89d164220e874f7cffe0f2c70797c61a147bcafb
Closes-Bug: #1681747
This commit is contained in:
Eduardo Gonzalez 2017-04-11 10:50:47 +01:00
parent 9a2df7e5a5
commit 39627f0456

View File

@ -4,7 +4,7 @@
register: mongodb_panko_database
run_once: true
changed_when: "{{ 'already' not in mongodb_panko_database.stdout }}"
failed_when: "{{ mongodb_panko_database.rc != 0 or mongodb_panko_database.stdout.split()[4] != 'connecting' }}"
failed_when: "{{ mongodb_panko_database.stdout.split()[4] != 'connecting' }}"
delegate_to: "{{ groups['mongodb'][0] }}"
when:
- panko_database_type == "mongodb"