Move warn clause as a shell task option.
The warn clause should be included inside an args subsection, otherwise the task will fail syntactically with 'warn' is not a valid attribute for a Task. Closes-Bug: #1824496 Change-Id: I217437c4d104475c8ea415dd178940c40264e0b0
This commit is contained in:
parent
ff52c2de67
commit
b4454024f7
@ -176,6 +176,7 @@ outputs:
|
|||||||
- name: remove old OpenvSwitch package(s) if version doesn't match
|
- name: remove old OpenvSwitch package(s) if version doesn't match
|
||||||
shell: |
|
shell: |
|
||||||
rpm -e --noscripts --nopreun --nopostun --notriggers --nodeps $(rpm -qa 'openvswitch{{ package_suffix|default('') }}*' | grep -v 'selinux')
|
rpm -e --noscripts --nopreun --nopostun --notriggers --nodeps $(rpm -qa 'openvswitch{{ package_suffix|default('') }}*' | grep -v 'selinux')
|
||||||
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
when: new_ovs_version != current_ovs_version
|
when: new_ovs_version != current_ovs_version
|
||||||
- name: install/upgrade OpenvSwitch LP package
|
- name: install/upgrade OpenvSwitch LP package
|
||||||
|
Loading…
Reference in New Issue
Block a user