Specify steps for some of the upgrade tasks

upgrade_tasks need to use "when: step|int == [0-6]"
for all tasks.

Change-Id: Ie3f3f25d3e4b200b4e9c1db54716dc18f4aa0b29
(cherry picked from commit e604adb957)
This commit is contained in:
rabi 2022-05-06 07:54:09 +05:30 committed by Rabi Mishra
parent 3965818719
commit ca28ad3502
1 changed files with 4 additions and 1 deletions

View File

@ -299,6 +299,7 @@ outputs:
state: present
when: ansible_facts['distribution_major_version'] is version('8', '==')
- name: check if libvirt is installed
when: step|int == 0
command: /usr/bin/rpm -q libvirt-daemon
failed_when: false
register: libvirt_installed
@ -313,7 +314,9 @@ outputs:
loop:
- libvirtd.service
- virtlogd.socket
when: libvirt_installed.rc == 0
when:
- step|int == 0
- libvirt_installed.rc == 0
- name: Special treatment for OpenvSwitch
tripleo_ovs_upgrade:
when: