diff --git a/playbooks/image-build/run.yaml b/playbooks/image-build/run.yaml index 899ac9b40f..9d49fc65a3 100644 --- a/playbooks/image-build/run.yaml +++ b/playbooks/image-build/run.yaml @@ -1,5 +1,13 @@ - hosts: all tasks: + # Workaround for Red Hat like distros: SELinux prevents diskimage-builder + # from creating a RPM DB dir in a chroot on Centos 9 Stream + - name: Disable SELinux on Red Hat distributions + selinux: + state: disabled + become: yes + when: + - ansible_os_family == 'RedHat' - name: Install apt packages apt: pkg: "{{ item }}"