package module
The module that installs or removes software using whatever package manager the host has, such as apt or dnf.
In more detail
You name the package and a state such as present, and it asks the host's own package manager to make that true. It usually needs privilege escalation, because ordinary accounts may not install software.
Related terms
- package manager — A tool that installs, updates and removes software together with what it depends on, such as apt on Debian, apk on Alpine or Homebrew on macOS.
- become — The Ansible keyword that switches on privilege escalation, so a task or a whole play runs as another account, root by default.
- service module — The module that starts, stops, restarts or reloads a background service on a host and sets whether it starts at boot.
Taught in
- Connections And Privilege Escalation — Ansible Configuration Management at Scale