Ansible module

A small program that knows how to manage one kind of thing, such as a file, a package or a service, and that a task calls to do its work.

In more detail

For each task, Ansible copies the module to the managed node, runs it with the task's arguments, and reads back a JSON result saying whether it changed anything. Good modules compare the current state with the one requested and act only on the difference, which is where idempotency comes from. Modules are distributed in collections and named by their fully qualified collection name, such as ansible.builtin.copy.

Related terms

Taught in

References

Certification courses