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:
parent
9a2df7e5a5
commit
39627f0456
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user