community.general.gio_mime module – Set default handler for MIME type, for applications using Gnome GIO
Note
This module is part of the community.general collection (version 9.4.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.gio_mime
.
New in community.general 7.5.0
Synopsis
This module allows configuring the default handler for a specific MIME type, to be used by applications built with th Gnome GIO API.
Parameters
Parameter |
Comments |
---|---|
Default handler will be set for the MIME type. |
|
MIME type for which a default handler will be set. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in |
|
Support: full |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
This module is a thin wrapper around the
gio mime
command (and subcommand).See man gio(1) for more details.
See Also
See also
- GIO Documentation
Reference documentation for the GIO API..
Examples
- name: Set chrome as the default handler for https
community.general.gio_mime:
mime_type: x-scheme-handler/https
handler: google-chrome.desktop
register: result
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The handler set as default. Returned: success Sample: |
|
The error output of the Returned: failure Sample: |
|
The output of the Returned: success Sample: |