vexxhost / ansible-collection-containers

This is a collection which contains playbooks and roles which allow you to deploy container runtimes using Ansible.
1 stars 6 forks source link

"containerd" under RockyLinux 9 fails because of SELinux #27

Open mnaser opened 3 months ago

mnaser commented 3 months ago

https://ci.atmosphere.dev/t/atmosphere/build/3e64d174889744d4b096c9e7b1abf091

mnaser commented 3 months ago

@fitbeard I think we might need help from your side on this, we have native VMs for CI which can let us things more reliably (from #26 )

fitbeard commented 3 months ago

@mnaser SELinux is more aggressive on RHEL9. It's in enforced mode by default (before on EL7/8 mode was permissive). My proposal would be to set SELinux to permissive mode for CI and leave real configuration for users. Users will almost always turn this off:(

Just pass this in a first place before other steps: sudo setenforce 0 or use real ansible:

- name: Put SELinux in permissive mode, logging actions that would be blocked.
  ansible.posix.selinux:
    policy: targeted
    state: permissive

or

- name: Disable SELinux
  ansible.posix.selinux:
    state: disabled