liveBook · Manning

Ansible module

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

An Ansible module is a discrete unit of code that performs a specific management task when invoked by a playbook.

An Ansible module is a discrete unit of code that a playbook invokes to perform one specific management task. Modules function as plugins or components of Ansible, while a task is the playbook operation that invokes them. section 25.2.1 section 25.3

Place modules within the Ansible operating model:

  • A playbook defines tasks and procedures. section 25.2.1
  • Each task represents one operation and can use a module to perform it. section 25.2.1
  • The control node uses SSH to push configuration to managed devices; those devices need no additional Ansible software. section 25.2.1
Figure 25.5 Basic Ansible operations. Inventory, template, and variable files define configurations, and playbooks define actions. The control node uses SSH to connect and push configurations to managed devices.

Relates modules and tasks to playbooks, configuration files, the control node, SSH, and managed devices. section 25.2.1

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Defines the module-task relationship and agentless execution, but does not detail module code or individual module parameters.
Examples
Uses playbooks, inventory, templates, variables, and SSH-based control-node operations as surrounding artifacts.
What it assumes
Assumes familiarity with playbooks and tasks while defining modules, inventory, templates, and variables.
What you can do after
Apply modules through Ansible playbook tasks to perform specific management operations on managed devices.
How it connects
Connects modules with playbooks, tasks, inventory, templates, variables, control nodes, managed devices, and SSH.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.