/ansible-skills:ansible-navigator-configfrom ansible-skills
Configures ansible-navigator TUI for Ansible, including execution environment integration, playbook execution, logging, and troubleshooting.
Ships in ansible-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Configure ansible-navigator for optimal workflow, execution environment integration, log management, and troubleshooting.
ansible-navigator is a text-based user interface (TUI) for Ansible that provides:
Key Benefits:
# Install ansible-navigator
pip install ansible-navigator
# Verify installation
ansible-navigator --version
# Optional: Install execution environment support
pip install ansible-builder
# Container runtime (one of these)
# Podman (recommended)
sudo dnf install podman
# Or Docker
sudo apt-get install docker.io
Place in project root or home directory (~/.ansible-navigator.yml).
---
ansible-navigator:
# Execution environment settings
execution-environment:
enabled: true
image: quay.io/ansible/creator-ee:latest
pull:
policy: missing # missing, always, never, tag
container-engine: podman # podman or docker
# Mode settings
mode: interactive # interactive or stdout
# Playbook execution settings
playbook-artifact:
enable: true
replay: artifacts/
save-as: "{playbook_dir}/artifacts/{playbook_name}-artifact-{time_stamp}.json"
# Logging
logging:
level: info # debug, info, warning, error, critical
append: true
file: ansible-navigator.log
# Editor for interactive mode
editor:
command: vim {filename}
console: true
# Inventory settings
inventories:
- inventory/production
- inventory/staging
---
ansible-navigator:
# Execution environment configuration
execution-environment:
enabled: true
image: my-custom-ee:1.0.0
pull:
policy: missing
arguments:
- "--tls-verify=false" # For internal registries
container-engine: podman
container-options:
- "--net=host" # Use host networking
- "--privileged" # If needed (use cautiously)
environment-variables:
set:
ANSIBLE_CONFIG: /runner/project/ansible.cfg
CUSTOM_VAR: value
pass:
- HTTP_PROXY
- HTTPS_PROXY
volume-mounts:
- src: /local/path
dest: /runner/local
options: Z # SELinux label
# Ansible configuration
ansible:
config: ansible.cfg
cmdline: "--forks 15 --timeout 60"
inventories:
- inventory/
# Playbook configuration
playbook-artifact:
enable: true
replay: artifacts/
save-as: "artifacts/{playbook_name}-{time_stamp}.json"
# Documentation settings
documentation:
plugin:
name: shell
type: module
# Collection settings
collection-doc-cache-path: ~/.cache/ansible-navigator/collection_doc_cache
# Color settings
color:
enable: true
osc4: true # Terminal color change support
# Display settings
display-color:
changed: yellow
debug: dark_gray
ok: green
skip: cyan
# Editor configuration
editor:
command: code -w {filename} # VS Code
console: false
# Format settings
format: yaml # yaml or json
# Logging
logging:
level: debug
append: true
file: ~/.ansible-navigator.log
# Mode
mode: interactive
# Images
images:
details:
- ansible_version
- python_version
- collections
# Time zone
time-zone: UTC
---
ansible-navigator:
execution-environment:
enabled: true
image: quay.io/myorg/my-custom-ee:1.0.0
pull:
policy: missing
# Mount project directory
volume-mounts:
- src: "{project_dir}"
dest: /runner/project
options: Z
# Mount SSH keys
- src: ~/.ssh
dest: /home/runner/.ssh
options: ro,Z
# Mount custom inventory
- src: /etc/ansible/inventory
dest: /runner/inventory
options: ro,Z
execution-environment:
environment-variables:
# Set variables
set:
ANSIBLE_VAULT_PASSWORD_FILE: /runner/.vault_pass
ANSIBLE_FORCE_COLOR: "true"
CUSTOM_API_KEY: "${API_KEY}" # From host environment
# Pass through from host
pass:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- HTTP_PROXY
- HTTPS_PROXY
- NO_PROXY
For local Ansible installation:
---
ansible-navigator:
execution-environment:
enabled: false # Use local Ansible
ansible:
config: ansible.cfg
playbook: playbooks/site.yml
Best for development and troubleshooting:
ansible-navigator:
mode: interactive
editor:
command: vim {filename}
console: true
playbook-artifact:
enable: true
save-as: "artifacts/{playbook_name}-artifact.json"
Features:
Usage:
ansible-navigator run playbook.yml
# Interactive TUI launches
# Use arrow keys to navigate
# Press number keys to drill down
# Press ESC to go back
# Press :q to quit
Best for automation and CI/CD:
ansible-navigator:
mode: stdout
playbook-artifact:
enable: true
save-as: "artifacts/{playbook_name}-{time_stamp}.json"
logging:
level: info
file: ansible-navigator.log
Features:
Usage:
ansible-navigator run playbook.yml --mode stdout
# Output goes to stdout like normal
# Artifact saved for replay
# Interactive mode
ansible-navigator run playbook.yml
# Stdout mode (CI/CD)
ansible-navigator run playbook.yml --mode stdout
# With specific inventory
ansible-navigator run playbook.yml -i inventory/production
# With extra vars
ansible-navigator run playbook.yml -e "env=production"
# With tags
ansible-navigator run playbook.yml --tags install,configure
# Check mode
ansible-navigator run playbook.yml --check
# With custom EE
ansible-navigator run playbook.yml \
--execution-environment-image my-ee:1.0.0
# Replay from artifact
ansible-navigator replay artifacts/site-artifact-2026-04-25.json
# Browse collections
ansible-navigator collections
# View specific collection
ansible-navigator collections ansible.posix
# View module documentation
ansible-navigator doc ansible.builtin.copy
# Search modules
ansible-navigator doc -l | grep copy
# Browse inventory
ansible-navigator inventory
# View specific host
ansible-navigator inventory --host server01
# List all hosts
ansible-navigator inventory --list
# Graph view
ansible-navigator inventory --graph
# List EE images
ansible-navigator images
# Inspect specific image
ansible-navigator images my-custom-ee:1.0.0
# Show image details (collections, python version, etc.)
ansible-navigator images my-custom-ee:1.0.0 --details
# Show current configuration
ansible-navigator config
# Dump configuration
ansible-navigator config dump
# Show configuration sources
ansible-navigator config dump --mode stdout
Artifacts are JSON files containing complete playbook execution details.
{
"version": "1.0",
"plays": [
{
"play": {
"name": "Configure web servers",
"id": "uuid",
"duration": {"start": "...", "end": "..."}
},
"tasks": [
{
"task": {
"name": "Install Apache",
"id": "uuid"
},
"hosts": {
"server01": {
"action": "ansible.builtin.package",
"changed": true,
"failed": false,
"result": {...}
}
}
}
]
}
]
}
# Replay in interactive mode
ansible-navigator replay artifacts/playbook-artifact.json
# Extract specific information with jq
jq '.plays[0].tasks[] | select(.task.name == "Install Apache")' \
artifacts/playbook-artifact.json
# Count changed tasks
jq '[.plays[].tasks[].hosts[] | select(.changed == true)] | length' \
artifacts/playbook-artifact.json
# List failed tasks
jq -r '.plays[].tasks[] | select(.hosts[].failed == true) | .task.name' \
artifacts/playbook-artifact.json
ansible-navigator:
logging:
level: debug # For troubleshooting
append: true
file: ~/.ansible-navigator/navigator.log
# View recent logs
tail -f ~/.ansible-navigator/navigator.log
# Search for errors
grep -i error ~/.ansible-navigator/navigator.log
# Filter by log level
grep "ERROR\|CRITICAL" ~/.ansible-navigator/navigator.log
# Run with increased verbosity
ansible-navigator run playbook.yml -vvv
# Debug mode in config
ansible-navigator:
logging:
level: debug
ansible:
cmdline: "-vvv"
name: Run Ansible Playbook
on:
push:
branches: [main]
jobs:
ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install ansible-navigator
run: pip install ansible-navigator
- name: Run playbook
run: |
ansible-navigator run playbook.yml \
--mode stdout \
--pull-policy always \
--execution-environment-image my-ee:latest
- name: Upload artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: playbook-artifact
path: artifacts/*.json
ansible-playbook:
stage: deploy
image: quay.io/ansible/creator-ee:latest
script:
- pip install ansible-navigator
- |
ansible-navigator run site.yml \
--mode stdout \
--execution-environment-image ${CI_REGISTRY_IMAGE}/ansible-ee:latest \
--pull-policy always
artifacts:
paths:
- artifacts/*.json
when: always
pipeline {
agent any
stages {
stage('Run Ansible') {
steps {
sh '''
pip install ansible-navigator
ansible-navigator run playbook.yml \
--mode stdout \
--execution-environment-image my-ee:1.0.0
'''
}
}
}
post {
always {
archiveArtifacts artifacts: 'artifacts/*.json'
}
}
}
Problem:
Error: image not found: my-custom-ee:1.0.0
Solutions:
# Pull the image first
execution-environment:
pull:
policy: always # Force pull
# Or use full registry path
execution-environment:
image: quay.io/myorg/my-custom-ee:1.0.0
# Manually pull image
podman pull my-custom-ee:1.0.0
# Check available images
podman images
Problem:
Error: Permission denied accessing /runner/project
Solutions:
# Add SELinux label (on RHEL/Fedora)
volume-mounts:
- src: "{project_dir}"
dest: /runner/project
options: Z # Relabel for container
# Or run with privileged
container-options:
- "--privileged" # Use cautiously
Problem:
Error: SSH key not accessible in container
Solutions:
# Mount SSH directory
volume-mounts:
- src: ~/.ssh
dest: /home/runner/.ssh
options: ro,Z
# Or use ssh-agent forwarding
environment-variables:
set:
SSH_AUTH_SOCK: /run/user/1000/ssh-agent.sock
volume-mounts:
- src: /run/user/1000/ssh-agent.sock
dest: /run/user/1000/ssh-agent.sock
Problem:
Error: Unable to find inventory
Solutions:
# Specify inventory explicitly
ansible:
inventories:
- inventory/production
# Or mount external inventory
volume-mounts:
- src: /etc/ansible/inventory
dest: /runner/inventory
options: ro,Z
Problem:
Error: collection not found in execution environment
Solutions:
# Verify collections in EE
ansible-navigator images my-ee:1.0.0 --details
# Or run with local collections
execution-environment:
volume-mounts:
- src: ~/.ansible/collections
dest: /runner/collections
options: ro,Z
---
# ansible-navigator.yml (development)
ansible-navigator:
execution-environment:
enabled: true
image: quay.io/ansible/creator-ee:latest
pull:
policy: missing
volume-mounts:
- src: "{project_dir}"
dest: /runner/project
options: Z
mode: interactive
editor:
command: code -w {filename}
console: false
playbook-artifact:
enable: true
save-as: "artifacts/{playbook_name}-artifact.json"
logging:
level: info
file: navigator.log
---
# ansible-navigator.yml (production)
ansible-navigator:
execution-environment:
enabled: true
image: quay.io/myorg/prod-ee:1.0.0
pull:
policy: always
environment-variables:
pass:
- VAULT_PASSWORD
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
mode: stdout
ansible:
config: ansible.cfg
cmdline: "--forks 20"
playbook-artifact:
enable: true
save-as: "artifacts/{playbook_name}-{time_stamp}.json"
logging:
level: warning
file: /var/log/ansible-navigator.log
---
# ansible-navigator.yml (multi-env)
ansible-navigator:
execution-environment:
enabled: true
image: my-ee:${ENV_TAG:-latest} # Environment-specific tag
volume-mounts:
- src: "{project_dir}"
dest: /runner/project
options: Z
- src: "inventory/${ENV:-dev}"
dest: /runner/inventory
options: ro,Z
ansible:
inventories:
- inventory/${ENV:-dev}
mode: ${NAVIGATOR_MODE:-interactive}
Usage:
# Development
ENV=dev ansible-navigator run playbook.yml
# Staging
ENV=staging NAVIGATOR_MODE=stdout ansible-navigator run playbook.yml
# Production
ENV=production ENV_TAG=1.0.0 NAVIGATOR_MODE=stdout \
ansible-navigator run playbook.yml
playbook-artifact:
enable: true
save-as: "artifacts/{playbook_name}-{time_stamp}.json"
Benefits:
# Good - specific version
execution-environment:
image: my-ee:1.2.3
# Bad - unpredictable
execution-environment:
image: my-ee:latest
mode: interactivemode: stdoutmode: interactive + logging.level: debugartifacts/
├── development/
├── staging/
└── production/
playbook-artifact:
save-as: "artifacts/${ENV}/{playbook_name}-{time_stamp}.json"
# Never commit passwords
# Use environment variables
environment-variables:
pass:
- VAULT_PASSWORD
- API_TOKEN
- AWS_SECRET_ACCESS_KEY
# Mount secrets securely
volume-mounts:
- src: ~/.vault_pass
dest: /runner/.vault_pass
options: ro,Z
# Run playbook interactively
ansible-navigator run playbook.yml
# Run in CI/CD mode
ansible-navigator run playbook.yml --mode stdout
# Replay artifact
ansible-navigator replay artifacts/playbook-artifact.json
# Browse collections
ansible-navigator collections
# View documentation
ansible-navigator doc ansible.builtin.copy
# Check inventory
ansible-navigator inventory --list
# Inspect EE image
ansible-navigator images my-ee:1.0.0
# Show config
ansible-navigator config dump
When configuring ansible-navigator, provide:
Explain:
When asked to configure ansible-navigator, analyze requirements, generate appropriate configuration, and provide comprehensive usage and troubleshooting guidance.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
11 skills in this plugin
/aap-config-as-codeConfigure Ansible Automation Platform as code using infra.aap_configuration collection for infrastructure-as-code management of AAP components. Use this skill when the user asks to: "configure AAP as code", "aap configuration management", "configure automation controller", "manage AAP with ansible", "aap infrastructure as code", "configure automation hub", "configure eda controller", or wants to automate AAP platform configuration using the Red Hat CoP collections. Always invoke this skill for AAP configuration-as-code workflows.
/ansible-cop-reviewReview Ansible code against Red Hat Communities of Practice automation good practices. Use this skill when the user asks to: "review ansible code", "check CoP compliance", "validate against Red Hat standards", "cop review", "ansible best practices review", "check ansible code quality", "review playbook", "review role", or wants to validate their Ansible automation against Red Hat CoP standards. Always invoke this skill for code review and validation tasks.
/ansible-eda-rulebookCreate Event-Driven Ansible rulebooks and integrate with event sources for automated infrastructure response. Use this skill when the user asks to: "create eda rulebook", "event-driven ansible", "ansible rulebook", "eda event source", "webhook automation", "event automation", "create rulebook for", "integrate event source", or wants to build event-driven automation with Ansible. Always invoke this skill for EDA rulebook creation and event source integration.