ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
836 stars 1.53k forks source link

SELinux restorecon module #9021

Open Hipska opened 1 month ago

Hipska commented 1 month ago

Summary

It would be nice if there would be a ansible module for the restorecon command. It would then be easy to know if the status is changed and also which files changed in the diff.

Issue Type

Feature Idea

Component Name

restorecon

Additional Information

- name: Restore SELinux context
  community.general.restorecon:
    path: /var/www/html
    recursive: true

Code of Conduct

ansibullbot commented 1 month ago

Files identified in the description: None

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help