Skip to content

noobient/ansible-galaxy-setfcontext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noobient.setfcontext

Synopsys

This role lets you set the SELinux fcontext for the given pattern and apply it to the given path.

Parameters

Name Required Example Description
path yes /var/www/db Path to run restorecon on after setting up the fcontext.
type yes httpd_sys_rw_content_t fcontext type to set for the given pattern.
pattern yes /var/www/db(/.*)? Pattern that corresponds to the given type.

Examples

- include_role:
    name: noobient.setfcontext
  vars:
    path: '/var/www/db'
    type: 'httpd_sys_rw_content_t'
    pattern: "/var/www/db(/.*)?"

Return Values

N/A

Support

Platform Support Status
Linter Lint
AlmaLinux 8 AlmaLinux 8
AlmaLinux 9 AlmaLinux 9
AlmaLinux 10 AlmaLinux 10
Fedora 42 Fedora 42
Fedora 43 Fedora 43
Ubuntu 22.04 N/A
Ubuntu 24.04 N/A
Ubuntu 26.04 N/A

Releases

No releases published

Packages

 
 
 

Contributors