2901a1685d
Create provision playbook with modular platform-interop framework Implement first version of update-system playbook Implement var organization Implement basic structure of inventory file
32 lines
832 B
YAML
32 lines
832 B
YAML
- name: Check system compatibility
|
|
when: ansible_distribution != "CentOS" and ansible_distribution != "Red Hat Enterprise Linux"
|
|
meta: end_play
|
|
debug:
|
|
msg: "Hypervisor deployment is only supported on CentOS and RHEL"
|
|
|
|
- name: Temporarily disable IUS and EPEL repositories
|
|
become: true
|
|
command: mv /etc/yum.repos.d/{{ item }}.repo /etc/yum.repos.d/{{ item }}.repo.bak
|
|
with_items:
|
|
- ius
|
|
- epel
|
|
|
|
- name: Install OVirt repository
|
|
become: true
|
|
yum:
|
|
name: http://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
|
|
state: latest
|
|
|
|
- name: Install OVirt Engine
|
|
become: true
|
|
yum:
|
|
name: ovirt-engine
|
|
state: latest
|
|
|
|
- name: Re-enable IUS and EPEL repositories
|
|
become: true
|
|
command: mv /etc/yum.repos.d/{{ item }}.repo.bak /etc/yum.repos.d/{{ item }}.repo
|
|
with_items:
|
|
- ius
|
|
- epel
|