1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-23 13:50:30 +00:00
community.general/plugins/module_utils
Marcos Alano 373334d668
Add xdg_mime module (#10007)
* Add version of xdg_mime module

* Fix xdg_mime_get since the command is different

* Add query parameter

* Fix order of parameters

* Add myself to BOTMETA

* Add unit tests

* Fix the way we deal when there is no handler set

* Improve documentation

* Remove unused import

* Fix documentation

* Strip xdg-mime from version string

* Fix information about version

* Add error message sample

* Add test to invalid handler

* Add support to multiple mime-types

* Change the output parameter from handlers to handler

* Change tests related to multiple mime-type support

* Small fixes

* Stop using constant to enable changed state

* Add before_handlers and after_handlers

* Change tests to use before and after structures

* Add a stronger message about using a non-installed handler

* Manage some edge cases

* Change error message to match the new value

* Add some fixes

* Change some tests

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Remove a blank line

* Remove single quote

* Add xdg-mime to the version in the mocks

* Remove after_handlers and make code simpler

* Update tests to work without after_handlers

* Remove diff_params and clean output_params

* Make mime_type plural since it supports multiple items

* Move the handler check to module init

* Use anchors in the test to make yaml simpler

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Add blank line to separe examples

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Add a small homage to my late grandma

* Update plugins/modules/xdg_mime.py

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

* Fix pep8 problem with the homage

* Remove trailing whitespace

* Update plugins/modules/xdg_mime.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-04-26 12:34:03 +02:00
..
identity/keycloak Add support for addressing subgroups by paths to the keycloak_user module (#9898) 2025-04-21 16:48:16 +02:00
mh module helper: delegate debug() to AnsibleModule (#9577) 2025-01-20 19:38:14 +01:00
net_tools/pritunl
oracle
remote_management/lxca
source_control
storage
_filelock.py Docs: fix its vs. it's (#9442) 2024-12-29 13:29:58 +01:00
_mount.py
_stormssh.py
alicloud_ecs.py
android_sdkmanager.py Add android sdk module (#9236) 2024-12-20 22:55:12 +01:00
btrfs.py
cloud.py
cmd_runner.py
cmd_runner_fmt.py cmd_runner_fmt.as_fixed() now accepts list of args (#9893) 2025-03-21 21:04:59 +01:00
consul.py
csv.py
database.py
datetime.py
deps.py
dimensiondata.py
django.py
gandi_livedns_api.py
gconftool2.py
gio_mime.py
gitlab.py
heroku.py
homebrew.py
hwc_utils.py
ibm_sa_utils.py
ilo_redfish_utils.py
influxdb.py
ipa.py
jenkins.py
known_hosts.py use open() as context manager (#9579) 2025-01-21 20:50:44 +01:00
ldap.py
linode.py
locale_gen.py
lxd.py
manageiq.py
memset.py
module_helper.py
ocapi_utils.py
oneandone.py
onepassword.py
oneview.py
online.py
opennebula.py
pacemaker.py add pacemaker_resource plugin (#9531) 2025-03-05 21:08:42 +01:00
pipx.py
proxmox.py Proxmox module refactoring (#9225) 2025-01-26 16:06:14 +01:00
puppet.py puppet: use better CmdRunner param formatting (#10014) 2025-04-19 09:26:59 +02:00
pure.py
python_runner.py
redfish_utils.py Unify TLS/SSL config for Redfish modules with new common argument spec and docs fragment; add validate_certs and ca_path options (#9964) 2025-04-10 07:08:04 +02:00
redis.py
rundeck.py
saslprep.py
scaleway.py
snap.py snap: add RV version (#9598) 2025-01-22 20:04:38 +01:00
ssh.py
systemd.py systemd_info - add wildcards support (#9821) 2025-03-15 07:36:16 +01:00
univention_umc.py
utm_utils.py
vardict.py
version.py
vexata.py
wdc_redfish_utils.py
xdg_mime.py Add xdg_mime module (#10007) 2025-04-26 12:34:03 +02:00
xenserver.py
xfconf.py xfconf/xfconf_info: add return value version (#9226) 2024-12-24 12:00:24 +01:00