37 lines
995 B
YAML
37 lines
995 B
YAML
|
---
|
||
|
- name: Install Ovirt on CentOS 8
|
||
|
become: true
|
||
|
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "8"
|
||
|
block:
|
||
|
- name: Install Ovirt repository
|
||
|
dnf:
|
||
|
state: latest
|
||
|
name: http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
|
||
|
- name: Update using the new repository
|
||
|
dnf:
|
||
|
state: latest
|
||
|
name: "*"
|
||
|
exclude: kernel*
|
||
|
- name: Install Ovirt
|
||
|
dnf:
|
||
|
state: latest
|
||
|
name: ovirt-engine
|
||
|
|
||
|
- name: Install Ovrit on CentOS 7
|
||
|
become: true
|
||
|
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
||
|
block:
|
||
|
- name: Install Ovirt repository
|
||
|
yum:
|
||
|
state: latest
|
||
|
name: http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
|
||
|
- name: Update using the new repository
|
||
|
yum:
|
||
|
state: latest
|
||
|
name: "*"
|
||
|
exclude: kernel*
|
||
|
- name: Install Ovirt
|
||
|
yum:
|
||
|
state: latest
|
||
|
name: ovirt-engine
|