-
Notifications
You must be signed in to change notification settings - Fork 739
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
change minimize access tasks to speed them up #209
Conversation
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
tasks/minimize_access.yml
Outdated
loop_var: outer_item | ||
loop: | ||
- name: find files with write-permissions for group | ||
shell: "find {{ item }} -perm /go+w -type f" |
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.
There was a comment:
Using a two-pass approach for checking directories in order to support symlinks
I'm not sure how find
will work with symlinked directories. I found this on StackOverflow. So may be you should use -L
or -H
(not sure which one) switch?
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.
-L
seems to go up directories and -H
does not (https://unix.stackexchange.com/questions/307169/what-is-the-difference-between-find-h-and-find-l-command).
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.
I used -L here, thanks! :)
The old link was no longer valid
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
change minimize access tasks to speed them up
Before:
After: