Fix heat role creation
Change-Id: Ic2a14659f90e5b6060eb695e1f3592db3ae5b907 Closes-Bug: #1626863
This commit is contained in:
parent
9df73ecc83
commit
36f400b80e
@ -47,10 +47,10 @@
|
|||||||
-m os_keystone_role
|
-m os_keystone_role
|
||||||
-a "name={{ heat_stack_user_role }}
|
-a "name={{ heat_stack_user_role }}
|
||||||
auth={{ '{{ openstack_heat_auth }}' }}"
|
auth={{ '{{ openstack_heat_auth }}' }}"
|
||||||
-e "{'openstack_horizon_auth':{{ openstack_heat_auth }}}"
|
-e "{'openstack_heat_auth':{{ openstack_heat_auth }}}"
|
||||||
register: heat_stack_user_role_result
|
register: heat_stack_user_role_result
|
||||||
changed_when: "{{ heat_stack_user_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_user_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
changed_when: "{{ heat_stack_user_role_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_user_role_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||||
until: heat_stack_user_result.split()[2] == 'SUCCESS'
|
until: heat_stack_user_role_result.stdout.split()[2] == 'SUCCESS'
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
@ -60,10 +60,10 @@
|
|||||||
-m os_keystone_role
|
-m os_keystone_role
|
||||||
-a "name={{ heat_stack_owner_role }}
|
-a "name={{ heat_stack_owner_role }}
|
||||||
auth={{ '{{ openstack_heat_auth }}' }}"
|
auth={{ '{{ openstack_heat_auth }}' }}"
|
||||||
-e "{'openstack_horizon_auth':{{ openstack_heat_auth }}}"
|
-e "{'openstack_heat_auth':{{ openstack_heat_auth }}}"
|
||||||
register: heat_stack_owner_role_result
|
register: heat_stack_owner_role_result
|
||||||
changed_when: "{{ heat_stack_owner_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_owner_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
changed_when: "{{ heat_stack_owner_role_result.stdout.find('localhost | SUCCESS => ') != -1 and (heat_stack_owner_role_result.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||||
until: heat_stack_owner_result.split()[2] == 'SUCCESS'
|
until: heat_stack_owner_role_result.stdout.split()[2] == 'SUCCESS'
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user