Pcornel
Automation · Configuration Management

Modules

Cheat sheet · https://pcornel.dk/topic.php?topic=5386

Back to the Topic

Answer

Modules are the units that do the work in configuration management, such as Ansible modules for packages or files, Puppet resources or DSC resources, each managing one kind of thing idempotently.

Remember

  • Each module manages one kind of resource idempotently.
  • Prefer modules over shell commands.
  • Pin collection or module versions.

First checks

  • ansible-doc <module> — module docs
  • ansible-doc -l | wc -l — available modules
  • Prefer modules over shell/command — idempotency

Verify in this order

task → module → change/no change

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5386

Confirmation

Confirm action

Continue?