community.general.selogin – Manages linux user to SELinux user mapping¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.selogin
.
Requirements¶
The below requirements are needed on the host that executes this module.
libselinux
policycoreutils
Parameters¶
Examples¶
- name: Modify the default user on the system to the guest_u user
community.general.selogin:
login: __default__
seuser: guest_u
state: present
- name: Assign gijoe user on an MLS machine a range and to the staff_u user
community.general.selogin:
login: gijoe
seuser: staff_u
serange: SystemLow-Secret
state: present
- name: Assign all users in the engineering group to the staff_u user
community.general.selogin:
login: '%engineering'
seuser: staff_u
state: present
Authors¶
Dan Keder (@dankeder)
Petr Lautrbach (@bachradsusi)
James Cassell (@jamescassell)