Merge "nova-compute: Adding failed_when to nova-compute stop task" into stable/ussuri
This commit is contained in:
commit
9b4f61ebe0
|
@ -1349,6 +1349,10 @@ outputs:
|
|||
state: stopped
|
||||
enabled: no
|
||||
become: true
|
||||
register: stop_nova_compute
|
||||
failed_when: "('msg' in stop_nova_compute and
|
||||
'Could not find the requested service tripleo_nova_compute' not in stop_nova_compute.msg) or
|
||||
('rc' in stop_nova_compute and stop_nova_compute.rc != 0)"
|
||||
- name: Delete nova-compute service
|
||||
command: openstack compute service delete {{ nova_compute_service[0].ID }}
|
||||
delegate_to: localhost
|
||||
|
|
Loading…
Reference in New Issue