Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check vdsm is not installed only during host deploy #317

Merged
merged 9 commits into from
May 3, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
- host_deploy_origin_type != ovirt_origin_type
- el_ver|int >= 8
- not node_host|bool
- host_action is not defined or (host_action == 'host_deploy' and not vdsm_preinstalled|bool)
- host_action is defined and host_action == 'host_deploy' and not vdsm_preinstalled|bool # use for host deploy only
mwperina marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@
set_fact:
virt_mod_ver: "rhel"
when:
- ansible_distribution_version is version('8.6', '>=')
- latest_rh_rel is version('8.6', '>=')

- name: Set virt module version for RHEL 8.4 and 8.5
set_fact:
virt_mod_ver: "av"
when:
- virt_mod_ver is not defined
- ansible_distribution_version is version('8.4', '>=')
- ansible_distribution_version is version('8.5', '<=')
- latest_rh_rel is version('8.4', '>=')
- latest_rh_rel is version('8.5', '<=')

- name: Set virt module version for RHEL 8.3 and older
set_fact:
virt_mod_ver: "{{ ansible_distribution_version }}"
virt_mod_ver: "{{ latest_rh_rel }}"
when:
- virt_mod_ver is not defined
- ansible_distribution_version is version('8.3', '<=')
- latest_rh_rel is version('8.3', '<=')

- name: Enable advanced virtualization module for relevant OS version
shell: "dnf -y module enable virt:{{ virt_mod_ver }}"
Expand Down