Ansible Navigator is a text-based command-line version of AAP/AWX (with some limitations), and I use it to test and troubleshoot newly created execution environments.
Ansible Navigator can be installed with pip.
$ pip install ansible-navigator
Once installed, create an ansible-navigator.yml configuration file, and point to the execution environment image, along with your inventory and ansible.cfg file.
$ cat ansible-navigator.yml
---
ansible-navigator:
ansible:
config:
path: "/example/ansible.cfg"
inventory:
entries:
- "/example/ansible_inventory"
execution-environment:
image: "localhost/ee:latest"
pull:
policy: "missing"
Then run a playbook using Ansible Navigator with the following command:
$ ansible-navigator run playbook.yml
If everything goes smoothly, you should have a functioning execution environment that AAP/AWX can use.
Leave a Reply