new module: filesize - create or resize a file, given its size (#2232)

* new module: filesize

* description: create or resize a file, given its size
* with integration tests

* Update plugins/modules/files/filesize.py (version_added)

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* Update filesize.py (extends_documentation_fragment: use fqcn)

Co-authored-by: Amin Vakil <info@aminvakil.com>

* doc: use strict lowercase booleans (true/false) rather than other variants

* use *raw* type to manage size values

* drop 'miB' unit family

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* add more details

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Amin Vakil <info@aminvakil.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
quidame 2021-04-19 07:04:29 +02:00 committed by GitHub
parent 91a0264f38
commit f87a39b21d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1685 additions and 0 deletions

1
plugins/modules/filesize.py Symbolic link
View file

@ -0,0 +1 @@
files/filesize.py