Skip to content

Commit

Permalink
upgrade ovn only for rhel8 hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
dangel101 authored and mwperina committed Aug 3, 2022
1 parent 6a6c9c2 commit e8f6361
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
{{ chassis_id.stdout }}
when:
- el_ver|int == 8
- ovirt_openvswitch_pre.version is version('2.11', '==')
- ovirt_openvswitch_post.version is version('2.15', '>=')
- ovn_central is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@
node_host: "{{ not node_presence.changed }}"

- block:
# for rhel7
- name: Check version of openvswitch before upgrade
set_fact:
ovirt_openvswitch_pre: "{{ ansible_facts.packages['openvswitch'] | first }}"
when:
- ansible_facts.packages['openvswitch'] is defined

- name: Check version of ovirt-openvswitch before upgrade
set_fact:
ovirt_openvswitch_pre: "{{ ansible_facts.packages['ovirt-openvswitch'] | first }}"
Expand Down

0 comments on commit e8f6361

Please sign in to comment.