ansible-collections / community.general

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

SELinux restorecon module #9021

Open Hipska opened 2 weeks ago

Hipska commented 2 weeks 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 2 weeks 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