1.2. Automation content navigator modes
Automation content navigator operates in two modes:
- stdout mode
- Accepts most of the existing Ansible commands and extensions at the command line.
- text-based user interface mode
- Provides an interactive, text-based interface to the Ansible commands for an enhanced set of capabilities that allow you to evaluate content, run playbooks, and troubleshoot playbooks after they run using artifact files.
1.2.1. stdout mode 复制链接链接已复制到粘贴板!
If you use the -m stdout
subcommand, Automation content navigator uses the familiar Ansible commands, such as ansible-playbook
within automation execution environments, or on your local development environment. This mode allows you to continue using commands you are familiar with for quick tasks.
Automation content navigator also provides extensive help in this mode:
--help
-
Accessible from
ansible-navigator
command or from any subcommand, such asansible-navigator config --help
. - subcommand help
-
Accessible from the subcommand, for example
ansible-navigator config --help-config
. This subcommand specific help brings in the details of all the parameters supported from the related Ansible command, in this example,ansible-config
.
1.2.2. Text-based user interface mode 复制链接链接已复制到粘贴板!
The text-based user interface mode provides enhanced interaction with automation execution environments, collections, playbooks, and inventory. This mode is compatible with integrated development environments (IDE), such as Visual Studio Code.
This mode includes a number of helpful user interface options:
- colon commands
-
You can access all the Automation content navigator commands with a colon, such as
:run
or:collections
- navigating the text-based interface
-
The screen shows how to page up or down, scroll, escape to a prior screen or access
:help
. - output by line number
-
You can access any line number in the displayed output by preceding it with a colon, for example
:12
. - color-coded output
- With colors enabled, Automation content navigator displays items such as deprecated modules in red.
- pagination and scrolling
- You can page up or down or scroll and escape using the options displayed at the bottom of each Automation content navigator screen.
You cannot switch between modes once Automation content navigator is running.