Module utilities

Module utilities contain shared code used by multiple plugins. You can write custom module utilities.

Enabling module utilities

You can add a custom module utility by dropping it into a module_utils directory adjacent to your collection or role, just like any other plugin.

Using module utilities

For information on using module utilities, see Using and developing module utilities.

See also

Developing modules

An introduction to creating Ansible modules

Developing collections

A guide to creating Ansible collections

Communication

Got questions? Need help? Want to share your ideas? Visit the Ansible communication guide