.. _ansible.posix.seboolean_module: *********************** ansible.posix.seboolean *********************** **Toggles SELinux booleans** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Toggles SELinux booleans. Requirements ------------ The below requirements are needed on the host that executes this module. - libselinux-python - libsemanage-python - python3-libsemanage Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
ignore_selinux_state
boolean
    Choices:
  • no ←
  • yes
Useful for scenarios (chrooted environment) that you can't get the real SELinux state.
name
string / required
Name of the boolean to configure.
persistent
boolean
    Choices:
  • no ←
  • yes
Set to true if the boolean setting should survive a reboot.
state
boolean / required
    Choices:
  • no
  • yes
Desired boolean value

Notes ----- .. note:: - Not tested on any Debian based system. Examples -------- .. code-block:: yaml - name: Set httpd_can_network_connect flag on and keep it persistent across reboots ansible.posix.seboolean: name: httpd_can_network_connect state: true persistent: true Status ------ Authors ~~~~~~~ - Stephen Fromm (@sfromm)