Merge "Use database_user_create in Heat bootstrap"
This commit is contained in:
commit
0292cd2129
@ -22,9 +22,9 @@
|
|||||||
host='%'
|
host='%'
|
||||||
priv='{{ heat_database_name }}.*:ALL'
|
priv='{{ heat_database_name }}.*:ALL'
|
||||||
append_privs='yes'"
|
append_privs='yes'"
|
||||||
register: database_user
|
register: database_user_create
|
||||||
changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and (database_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and (database_user_create.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||||
failed_when: database_user.stdout.split()[2] != 'SUCCESS'
|
failed_when: database_user_create.stdout.split()[2] != 'SUCCESS'
|
||||||
run_once: True
|
run_once: True
|
||||||
|
|
||||||
- name: Starting Heat bootstrap container
|
- name: Starting Heat bootstrap container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user