-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
templates: file_permissions: Improve handling of directories in ansible remediation #10882
Conversation
directories in ansible remediation. When we use the ansible file module to apply permissions only to directories and subdirectories, this ends up applying to the files. By using the find module we can prevent that and have a simple remediation that works both for directories and file_regex. This fixes ComplianceAsCode#10687.
@marcusburghardt @Mab879 can you check the testing-farm fail? The |
Code Climate has analyzed commit 8fcbb59 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 53.2% (0.0% change). View more on Code Climate. |
It works as expected. I just checked the resulting bash remediation and it includes these two lines:
Ansible follows the same approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
423e654
into
ComplianceAsCode:master
Description:
Rationale: