Note
This module is part of the ansible.posix collection (version 1.6.2).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install ansible.posix. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: ansible.posix.seboolean.
New in ansible.posix 1.0.0
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
ignore_selinux_state boolean | Useful for scenarios (chrooted environment) that you can’t get the real SELinux state. Choices:
|
name string / required | Name of the boolean to configure. |
persistent boolean | Set to Choices:
|
state boolean / required | Desired boolean value. Choices:
|
Note
- 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
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/ansible/posix/seboolean_module.html