LHQG now proposes a SELinux policy module aimes at confinent, and thus restrictions, the actions performed by Ansible on a Linux mahine managed with this powerful solution.
This module is available OpenSource under GPLv3 license at the GitHub URL https://github.com/lhqg/selinux_ansible/
LHQG distributes this SELinux module in RPM format for Fedora and Enterprise Linux (RHEL, CentOS, AlmaLinux,...) and in DEB format for Debian and Ubuntu:
- ansible-selinux: contains and installe the SELinux compiled code,
- ansible-selinux-devel: contains SELinux macros allowing engineers to create new modules to extend the SELinux policy for Ansible on the managed host(s) so that they can fine tune the permissions of Ansible on resources hosted on the machine(s) such applications services and data.
These RPM and DEB packages are also available from the online maintained by LHQG.
2026-11-19 Update
Version 0.1.0 of the SELinux policy module for Ansible on managed hosts is no online !
RPM packages are available in the LHQG YUM repositories for Enterprise Linux 8, 9 and 10 as well as for Fedora 42, 43 ans 44.
DEB packages are available for Ubuntu 24.04 and for Debian 12 and 13.