From d849e1644219e5902d40f3bb8e15e1bc1fb22b54 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 1 Dec 2021 15:06:48 -0800 Subject: [PATCH] virthost: enable advanced virt module on rhel 8 virthosts Signed-off-by: Kevin Fenzi --- roles/virthost/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/virthost/tasks/main.yml b/roles/virthost/tasks/main.yml index f4ff365a5f..ee7a24142f 100644 --- a/roles/virthost/tasks/main.yml +++ b/roles/virthost/tasks/main.yml @@ -4,6 +4,20 @@ - name: set selinux to enforcing selinux: policy=targeted state=enforcing +# enable the advanced virt module +- name: enable the advanced virt module + copy: + dest: /etc/dnf/modules.d/virt.module + content: | + [virt] + name=virt + stream=8.3 + profiles= + state=enabled + tags: + - virthost + when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 8 + - name: install openstack 7 repo file copy: src=rhel7-os.repo dest=/etc/yum.repos.d/rhel7-os.repo tags: