-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
new module: filesize - create or resize a file, given its size #2232
new module: filesize - create or resize a file, given its size #2232
Conversation
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.
Thanks for your contribution!
This comment has been minimized.
This comment has been minimized.
6644d2d
to
478e0b4
Compare
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.
Aside from (#2232 (comment)) LGTM.
I won't insist on this change though.
478e0b4
to
d4943cd
Compare
* description: create or resize a file, given its size * with integration tests
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Amin Vakil <info@aminvakil.com>
d4943cd
to
4429ddb
Compare
2df183a
to
13cb9da
Compare
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.
Looks good! I spotted a few more details, but besides that everything's great!
Co-authored-by: Felix Fontein <felix@fontein.de>
Assuming CI passes and nobody complains, I'll merge by Monday or so :) |
@quidame thanks for contributing this! |
Moved from ansible-collections/ansible.posix#148
SUMMARY
New module
filesize
to create a file or resize it. This is a simple wrapper arounddd
that allows to grow or reduce (truncate) a file to any arbitrary size. Useful to manage swap files.Supports
check_mode
anddiff
.ISSUE TYPE
COMPONENT NAME
filesize
ADDITIONAL INFORMATION
Example: