Merge "nova-compute: Adding failed_when to nova-compute stop task" into stable/ussuri

This commit is contained in:
Zuul 2021-08-12 01:38:05 +00:00 committed by Gerrit Code Review
commit 9b4f61ebe0
1 changed files with 4 additions and 0 deletions

View File

@ -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