ansible-navigator
Red Hat's command-line tool that runs playbooks inside an execution environment container image and lets you browse plays, tasks and results interactively.
In more detail
ansible-navigator run site.yml starts the image with podman, mounts the project directory and runs ansible-playbook inside it, so modules come from the collections in the image rather than from the control node. It reads exactly one settings file and never merges two: the file named by ANSIBLE_NAVIGATOR_CONFIG, else ansible-navigator.yml in the project directory, else the hidden settings file in your home directory. Mode stdout prints what ansible-playbook prints; interactive mode opens a text interface you drill into by number.
Example
ansible-navigator run site.yml -m stdoutRelated terms
- execution environment — A container image holding ansible-core, Python and a chosen set of collections, so a playbook runs with the same versions on every machine.
- ansible-playbook — The command that runs a playbook, printing a banner for each play and task, a result per host, and a recap at the end.
- Ansible collection — A distribution package of Ansible content, such as modules, plugins, roles and documentation, published under a namespace.
Taught in
- Graded On A Machine You Never Touched — RHCE in Ansible (EX294): Automate Red Hat Systems
- Exam Strategy: The First Fifteen Minutes And ansible-doc — RHCE in Ansible (EX294): Automate Red Hat Systems
- Handlers And Failure: notify, block, rescue And always — RHCE in Ansible (EX294): Automate Red Hat Systems
- ansible-navigator: The Settings File The Exam Reads — RHCE in Ansible (EX294): Automate Red Hat Systems
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- Git And VS Code: Clone, Commit, Push, And The Dev Container — RHCE in Ansible (EX294): Automate Red Hat Systems
- Ansible Vault: Secrets Encrypted, Runs Without A Prompt — RHCE in Ansible (EX294): Automate Red Hat Systems