Skip to content
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

Merged
merged 4 commits into from
Mar 24, 2019
Merged

change minimize access tasks to speed them up #209

merged 4 commits into from
Mar 24, 2019

Conversation

rndmh3ro
Copy link
Member

@rndmh3ro rndmh3ro commented Jan 24, 2019

Before:

real    6m57,989s

After:

real    2m56,681s

Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
loop_var: outer_item
loop:
- name: find files with write-permissions for group
shell: "find {{ item }} -perm /go+w -type f"
Copy link

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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! :)

pmav99 and others added 3 commits March 24, 2019 19:36
The old link was no longer valid
Signed-off-by: Joshua Talbot <info@jtalb.com>
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
@rndmh3ro rndmh3ro merged commit 66f6c3c into master Mar 24, 2019
@rndmh3ro rndmh3ro deleted the speedup branch March 24, 2019 19:02
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this pull request Aug 3, 2022
change minimize access tasks to speed them up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants