UPdate for RedHat
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-09-28 00:17:18 +02:00
parent 3707fa97e6
commit f6df20e4e1
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 37 additions and 31 deletions

View file

@ -2,11 +2,6 @@
- name: Include vars for {{ ansible_os_family }} - name: Include vars for {{ ansible_os_family }}
include_vars: "{{ ansible_os_family }}.yml" include_vars: "{{ ansible_os_family }}.yml"
- name: "Ensure system is x86_64"
fail:
msg: "qemu-kvm requires a 64bit system architecture for now"
when: "ansible_architecture != 'x86_64'"
- name: "Ensure system is hardware virtualization capability" - name: "Ensure system is hardware virtualization capability"
fail: fail:
msg: "qemu-kvm requires hypervisor capability" msg: "qemu-kvm requires hypervisor capability"
@ -14,6 +9,16 @@
- name: Include tasks for {{ ansible_os_family }} - name: Include tasks for {{ ansible_os_family }}
include_tasks: "{{ ansible_os_family }}.yml" include_tasks: "{{ ansible_os_family }}.yml"
when:
- ansible_distribution == 'CentOS'
- ansible_distribution_major_version == '7'
- name: Enable a AppStream RHSM repository
community.general.rhsm_repository:
name: "rhel-8-for-{{ ansible_architecture }}-appstream-rpms"
when:
- ansible_distribution == "RedHat"
- ansible_distribution_major_version == '8'
- name: install packages - name: install packages
package: package:
@ -30,7 +35,7 @@
group: root group: root
mode: 0644 mode: 0644
- name: Install Openvswitch - name: Install OpenVSwitch
include_role: include_role:
name: openvswitch name: openvswitch
# vars: # vars:
@ -44,7 +49,7 @@
name: "{{ libvirt_service }}" name: "{{ libvirt_service }}"
state: restarted state: restarted
#- name: Add Openvswitch bridge #- name: Add OpenVSwitch bridge
# openvswitch_bridge: # openvswitch_bridge:
# bridge: '{{ qemu_default_network_interface }}' # bridge: '{{ qemu_default_network_interface }}'
# parent: '{{ openvswitch_interface }}' # parent: '{{ openvswitch_interface }}'
@ -81,7 +86,7 @@
- default - default
- private - private
- name: Add OpenVswitch networks - name: Add OpenVSwitch networks
virt_net: virt_net:
command: define command: define
name: '{{ item.name }}' name: '{{ item.name }}'

View file

@ -1,33 +1,34 @@
--- ---
libvirt_kvm_packages: libvirt_kvm_packages:
- edk2-ovmf # - edk2-ovmf # vient avec libvirt-daemon-kvm
- qemu-kvm # - qemu-kvm # vient avec libvirt-daemon-kvm
- libvirt-bash-completion - libvirt
- libvirt-daemon-config-network # - libvirt-bash-completion
- libvirt-daemon-config-nwfilter # - libvirt-daemon-config-network
- libvirt-daemon-driver-interface # - libvirt-daemon-config-nwfilter
- libvirt-daemon-driver-network # - libvirt-daemon-driver-interface
- libvirt-daemon-driver-nodedev # - libvirt-daemon-driver-network
- libvirt-daemon-driver-nwfilter # - libvirt-daemon-driver-nodedev
- libvirt-daemon-driver-qemu # - libvirt-daemon-driver-nwfilter
- libvirt-daemon-driver-secret # - libvirt-daemon-driver-qemu
- libvirt-daemon-driver-storage # - libvirt-daemon-driver-secret
- libvirt-daemon-driver-storage-core # - libvirt-daemon-driver-storage
- libvirt-daemon-driver-storage-disk # - libvirt-daemon-driver-storage-core
- libvirt-daemon-driver-storage-gluster # - libvirt-daemon-driver-storage-disk
- libvirt-daemon-driver-storage-iscsi # - libvirt-daemon-driver-storage-gluster
- libvirt-daemon-driver-storage-iscsi-direct # - libvirt-daemon-driver-storage-iscsi
- libvirt-daemon-driver-storage-logical # - libvirt-daemon-driver-storage-iscsi-direct
- libvirt-daemon-driver-storage-mpath # - libvirt-daemon-driver-storage-logical
- libvirt-daemon-driver-storage-rbd # - libvirt-daemon-driver-storage-mpath
- libvirt-daemon-driver-storage-scsi # - libvirt-daemon-driver-storage-rbd
# - libvirt-daemon-driver-storage-scsi
- libvirt-daemon-kvm - libvirt-daemon-kvm
- libvirt-lock-sanlock - libvirt-lock-sanlock
- python3-libvirt - python3-libvirt
- python-lxml - python3-lxml
- swtpm - swtpm
- swtpm-tools - swtpm-tools
- virt-backup # - virt-backup
# - virt-install # - virt-install
libvirt_service: libvirtd libvirt_service: libvirtd