Member-only story

Enable or Disable SELinux Boolean on Linux — Ansible module seboolean

How to automate the enabling of the “httpd_use_nfs” SELinux boolean and make it persistent after a reboot on Linux with Ansible.

Luca Berton
9 min readDec 17, 2021

How to Enable or Disable SELinux Boolean on Linux with Ansible?

I’m going to show you a live demo with some simple Ansible code.

I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

SELinux Booleans

  • SELinux boolean — changes how SELinux reacts

What is SELinux?

Security-Enhanced Linux (SELinux) is a Linux kernel security module that provides a mechanism for supporting access control security policies, including mandatory access controls (MAC).

What are SELinux Booleans?

An SELinux boolean is a single string that changes how SELinux reacts.
You could find some examples in the following URL: https://wiki.centos.org/TipsAndTricks/SelinuxBooleans

Ansible Enable or Disable SELinux Boolean on Linux

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet