Giter Club home page Giter Club logo

ansible-role-selinux-utils's Introduction

SELinux Utils

Actions Status Ansible Role

Sets a host variable indicating whether SELinux is enabled or not. Installs utilities for interacting with SELinux if it is.

These utilities may be required by some Ansible modules when SELinux is enabled, and are not always present in CentOS 7 base images.

This role will set the host variable selinux_enabled: {True,False} which can be used in later roles.

Ideally this role should be included as a dependency in meta/main.yml of any roles that need to know whether SELinux is enabled.

Example Playbook

- hosts: localhost
  roles:
  - ome.selinux_utils
  tasks:
    debug:
      msg: "SELinux is enabled or permissive"
    when: selinux_enabled

Author Information

[email protected]

ansible-role-selinux-utils's People

Contributors

jburel avatar joshmoore avatar manics avatar pwalczysko avatar sbesson avatar vulturm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-selinux-utils's Issues

AlmaLinux support status?

What's the status of using AlmaLinux? Having just installed Omero on AlmaLinux one fix to the Ansible roles was to modify:

./ome.selinux_utils/tasks/main.yml

Particularly the checking for Rocky:

- name: system packages | Add CRB repository for RHEL
  become: true
  ansible.builtin.command:
    subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms    
  when: ansible_os_family == 'RedHat' and not rockyrepo_name.stat.exists

How should AlmaLinux behave here? Is this to add the required repo for the following packages which Rocky doesn't need? AlmaLinux has CRB via dnf config-manager --set-enabled crb

Also wonder whether ansible distribution fact could be used instead (e.g. only when Redhat distribution)?

Fails for Redhat OS family distribution major version 8

This role fails when:

ansible_os_family == Redhat && ansible_facts['distribution_major_version'] == 8

This is because these packages are not available:

 - libselinux-python
 - libsemanage-python
 - policycoreutils-python

Should be replaced with the following for major version 8:

- python3-libselinux
- python3-libsemanage
- policycoreutils-python-utils

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.