You might be able to drink it in an emergency, but you might still die
GPL-3.0 License
You might be able to drink it in an emergency, but you might still die.
This repo is an Ansible collection containing some of my own Ansible plugins that died in the PR phase, and have instead been moved to this festering repository.
to_ini
- Convert hash/map/dict to INI formatfrom_ini
- Convert INI to hash/map/dictto_toml
- Convert hash/map/dict to TOML formatfrom_toml
- Convert TOML to hash/map/dictjq
- Parse JSON using jq
passlib_hash
- Hash passwords using passlib
exec_binary_module
- A proxy action, to execute binary modulesspeedtest
- Tests internet bandwidth using speedtest.netcert_locations
- Report CA cert locations used by Ansiblesubstring
- Search for substring in filedump_stats
- Callback to dump to stats from set_stat
to a JSON filecprofile
- Uses cProfile
to profile the python execution of ansiblecprofile
- Noop inventory plugin used to enable cProfile as early as possibleGenerally speaking, most users should not even know they are interacting with exec_binary_module
, but instead should be using the name of an underlying binary module implementation.
To achieve this, requires a small addition to a collections meta/runtime.yml
:
plugin_routing:
modules:
helloworld:
action_plugin: sivel.toiletwater.exec_binary_module
another_module:
action_plugin: sivel.toiletwater.exec_binary_module
At which point, with modules named something like helloworld_linux_amd64
a user would only have to do the following:
- namespace.name.helloworld:
name: sivel
- namespace.name.another_module:
some_argument: true