ansible.posix.seboolean (1.5.4) — module

Toggles SELinux booleans

| "added in version" 1.0.0 of ansible.posix"

Authors: Stephen Fromm (@sfromm)

Install collection

Install with ansible-galaxy collection install ansible.posix:==1.5.4


Add to requirements.yml

  collections:
    - name: ansible.posix
      version: 1.5.4

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
  ansible.posix.seboolean:
    name: httpd_can_network_connect
    state: true
    persistent: true

Inputs

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

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

persistent:
    default: false
    description:
    - Set to C(true) 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