|
|
@ -47,7 +47,7 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Use file magic and return data about the nature of the file. this uses
|
|
|
|
- Use file magic and return data about the nature of the file. this uses
|
|
|
|
the 'file' utility found on most Linux/Unix systems.
|
|
|
|
the 'file' utility found on most Linux/Unix systems.
|
|
|
|
- This will add both C(mime_type) and C(charset) fields to the return, if possible.
|
|
|
|
- This will add both C(mimetype) and C(charset) fields to the return, if possible.
|
|
|
|
- In Ansible 2.3 this option changed from I(mime) to I(get_mime) and the default changed to C(true).
|
|
|
|
- In Ansible 2.3 this option changed from I(mime) to I(get_mime) and the default changed to C(true).
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
default: yes
|
|
|
|
default: yes
|
|
|
@ -326,14 +326,14 @@ stat:
|
|
|
|
mimetype:
|
|
|
|
mimetype:
|
|
|
|
description: file magic data or mime-type
|
|
|
|
description: file magic data or mime-type
|
|
|
|
returned: success, path exists and user can read stats and
|
|
|
|
returned: success, path exists and user can read stats and
|
|
|
|
installed python supports it and the I(mime) option was true, will
|
|
|
|
installed python supports it and the I(get_mime) option was true, will
|
|
|
|
return C(unknown) on error.
|
|
|
|
return C(unknown) on error.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
sample: application/pdf; charset=binary
|
|
|
|
sample: application/pdf; charset=binary
|
|
|
|
charset:
|
|
|
|
charset:
|
|
|
|
description: file character set or encoding
|
|
|
|
description: file character set or encoding
|
|
|
|
returned: success, path exists and user can read stats and
|
|
|
|
returned: success, path exists and user can read stats and
|
|
|
|
installed python supports it and the I(mime) option was true, will
|
|
|
|
installed python supports it and the I(get_mime) option was true, will
|
|
|
|
return C(unknown) on error.
|
|
|
|
return C(unknown) on error.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
sample: us-ascii
|
|
|
|
sample: us-ascii
|
|
|
|