openafs_contrib.openafs.openafs_selinux_module (1.9.0) — module

Create and install an selinux module from input files

Authors: Michael Meffie

preview | supported by community

Install collection

Install with ansible-galaxy collection install openafs_contrib.openafs:==1.9.0


Add to requirements.yml

  collections:
    - name: openafs_contrib.openafs
      version: 1.9.0

Description

Build the selinux module from the given input files.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Copy the SELinux module definitions for openafs server
  become: yes
  template:
    dest: "/var/lib/ansible-openafs/selinux/{{ item }}"
    src: "{{ role_path }}/templates/{{ item }}.j2"
  with_items:
    - openafs.te
    - openafs.fc
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Build SELinux module for openafs server
  become: yes
  openafs_contrib.openafs.openafs_selinux_module:
    name: openafs
    path: /var/lib/ansible-openafs/selinux

Inputs

    
name:
    default: openafs
    description: name of the selinux module

path:
    default: /var/lib/ansible-openafs/selinux
    description:
    - Path to the Type Enforcement (te) and File Context (fc) input files and the destination
      path of the output pp and mod files.

state:
    description: c(present) is currently the only supported state.

Outputs

module:
  description: Path to the module
  returned: success
  type: str
version:
  description: Module version
  returned: success
  type: str