Task modules #
- Locations:
$PLAYBOOK_ROOT/library
can be used by the playbook or any role it references$ROLE_ROOT/library
can be used by the role- I recommend keeping all playbooks in the root of Ansible repo, allowing you to use
./library
- Documentation: https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html
Ansible task modules allow developers to build new tasks, like template
, command
, etc.
Unlike action plugins,
tasks run on the remote host.
Unlike true Ansible plugins, task modules may be written in any language.
If they happen to be written in Python,
task modules may use module_utils
just like a plugin.
TODO
Document module_utils
TODO
Finish task-modules