ansible.builtin.seboolean (v2.9.27) — module

Toggles SELinux booleans

| "added in version" 0.7 of ansible.builtin"

Authors: Stephen Fromm (@sfromm)

stableinterface | supported by core

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Toggles SELinux booleans.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set httpd_can_network_connect flag on and keep it persistent across reboots
  seboolean:
    name: httpd_can_network_connect
    state: yes
    persistent: yes

Inputs

    
name:
    description:
    - Name of the boolean to configure.
    required: true

state:
    description:
    - Desired boolean value
    required: true
    type: bool

persistent:
    default: 'no'
    description:
    - Set to C(yes) if the boolean setting should survive a reboot.
    type: bool

ignore_selinux_state:
    default: false
    description:
    - Useful for scenarios (chrooted environment) that you can't get the real SELinux
      state.
    type: bool
    version_added: '2.8'
    version_added_collection: ansible.builtin