Skip to main content

A text-based user interface (TUI) for the Red Hat Ansible Automation Platform

Project description

ansible-navigator

A text-based user interface (TUI) for the Red Hat Ansible Automation Platform

asciicast

Quick start

Using a virtual environment and pip

mkdir project_directory
cd project_directory
python3 -m venv venv
source venv/bin/activate
pip install ansible-navigator
ansible-navigator --help

By default, ansible-navigator uses execution environments, to use ansible-navigator without an execution environment, ansible is required

pip install ansible
ansible-navigator --execution-environment false

RHEL8/Centos8 prerequisites:

sudo dnf install python3
sudo dnf install gcc python3-devel

Welcome

Start at the welcome page, from the welcome page you can run playbooks, browse collections, explore inventories, review docs and more.

ansible-navigator

Other things to try direct from the command line

Using interactive mode, which is the default

Review and explore available collections

ansible-navigator collections

Review and explore current ansible configuration

ansible-navigator config

Review and explore documentation (default mode is interactive)

ansible-navigator doc ansible.netcommon.cli_command

Review and explore an inventory

ansible-navigator inventory -i inventory.yaml

Run and explore a playbook

ansible-navigator run site.yaml -i inventory.yaml

Using stdout mode, which returns Ansible's familiar command-line interface (CLI) output

Show the current ansible configuration

ansible-navigator config dump -m stdout

Show documentation

ansible-navigator doc sudo -t become  -m stdout

Show an inventory

ansible-navigator inventory --list -i inventory.yaml -m stdout

Run a playbook

ansible-navigator run site.yaml -i inventory.yaml -m stdout

Available subcommands

For the full list of available subcommands and their mapping to ansible commands, see the subcommand guide

Configuring ansible-navigator:

ansible-navigator can be configured:

  1. using default values
  2. with a settings file
  3. with environment variables
  4. at the command line
  5. while issuing : commands within the text-based user interface (TUI)

Setting are applied in that order. For an overview of these approaches, see the settings guide

Key bindings and colon commands

While using the terminal user interface keys and commands are available, the following is also available within the application by typing :help:

## GENERAL
--------------------------------------------------------------------------------------
esc                                     Go back
^f/PgUp                                 Page up
^b/PgDn                                 Page down
arrow up, arrow down                    Scroll up/down
:collections                            Explore installed collections
:config                                 Explore the current Ansible configuration
:d, :doc <plugin>                       Show a plugin doc
:r, :run <playbook> -i <inventory>      Run a playbook using in interactive mode
:f, :filter <re>                        Filter page lines using a regex
:h, :help                               This page
:i, :inventory <inventory>              Explore the current or alternate inventory
:l, :log                                Review current log file
:o, :open                               Open current page in the editor
:o, :open {{ some_key }}                Open file path in a key's value
:q, :quit                               Quit the application
:q!, :quit!, ^c                         Force quit while a playbook is running
:rr, :rerun                             Rerun the playbook
:s, :save <file>                        Save current plays as an artifact
:st, :stream                            Watch playbook results real time
:w, :write <file>                       Write current page to a new file
:w!, :write! <file>                     Write current page to an existing or new file
:w>>, :write>> <file>                   Append current page to an existing file
:w!>>, :write!>> <file>                 Append current page to an existing or new file

## MENUS
--------------------------------------------------------------------------------------
[0-9]                                   Go to menu item
:<number>                               Go to menu item
:{{ n|filter }}                         Template the menu item

## TASKS
--------------------------------------------------------------------------------------
[0-9]                                   Go to task number
:<number>                               Go to task number
+, -                                    Next/Previous task
_, :_                                   Toggle hidden keys
:{{ key|filter }}                       Template the key's value
:d, :doc                                Show the doc for the current task's module
:j, :json                               Switch to JSON serialization
:y, :yaml                               Switch to YAML serialization

## LINE INPUT
--------------------------------------------------------------------------------------
esc                                     Exit line input
^A                                      Beginning of line
^E                                      End of line
insert                                  Enable/disable insert mode
arrow up, arrow down                    Previous/next command in history

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible-navigator-0.7.0.tar.gz (142.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_navigator-0.7.0-py3-none-any.whl (197.3 kB view details)

Uploaded Python 3

File details

Details for the file ansible-navigator-0.7.0.tar.gz.

File metadata

  • Download URL: ansible-navigator-0.7.0.tar.gz
  • Upload date:
  • Size: 142.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9

File hashes

Hashes for ansible-navigator-0.7.0.tar.gz
Algorithm Hash digest
SHA256 74b69060f5f1b68865f112173a7a1ff0c5ef7bd959c22ed0897654562c9fbc11
MD5 98f44277ba46b9b564267fa0d84932d8
BLAKE2b-256 c99dc51273e5faf41fdc07eab0ad58b9cb0c8c2f4ab166ba69caa6f05265aa4d

See more details on using hashes here.

File details

Details for the file ansible_navigator-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: ansible_navigator-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 197.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9

File hashes

Hashes for ansible_navigator-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eede18d33babaa5417f44fba40afa5c94029b6c7bcface4c5a5a99d7a5c34b28
MD5 c1b25a2807d2321fd2ed064aee0daba9
BLAKE2b-256 774b359fd5634603fc153a9149df1f651d7fc653d7952adfcd104840f0b36bdf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page