ansible.builtin.seboolean (v2.4.4.0-1) — 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.4.4.0.post1

Description

Toggles SELinux booleans.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# 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:
    default: null
    description:
    - Name of the boolean to configure
    required: true

state:
    choices:
    - 'yes'
    - 'no'
    default: null
    description:
    - Desired boolean value
    required: true

persistent:
    choices:
    - 'yes'
    - 'no'
    default: false
    description:
    - Set to C(yes) if the boolean setting should survive a reboot
    required: false