Skip to content
Snippets Groups Projects
Commit 97a8ba6f authored by Sam Yaple's avatar Sam Yaple
Browse files

Fix incorrect ansible variable

Change-Id: Ic6755dfe5c3741e4a945c8353f643bbf1479c172
Closes-Bug: #1519040
parent 970617b8
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
priv='{{ keystone_database_name }}.*:ALL' priv='{{ keystone_database_name }}.*:ALL'
append_privs='yes'" append_privs='yes'"
register: database_user_create register: database_user_create
changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and changed_when: "{{ database_user_create.stdout.find('localhost | SUCCESS => ') != -1 and
(database_user_create.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" (database_user_create.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
failed_when: database_user_create.stdout.split()[2] != 'SUCCESS' failed_when: database_user_create.stdout.split()[2] != 'SUCCESS'
run_once: True run_once: True
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
priv='{{ magnum_database_name }}.*:ALL' priv='{{ magnum_database_name }}.*:ALL'
append_privs='yes'" append_privs='yes'"
register: database_user_create register: database_user_create
changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and changed_when: "{{ database_user_create.stdout.find('localhost | SUCCESS => ') != -1 and
(database_user_create.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" (database_user_create.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
failed_when: database_user_create.stdout.split()[2] != 'SUCCESS' failed_when: database_user_create.stdout.split()[2] != 'SUCCESS'
run_once: True run_once: True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment