Embedded Ansible using AWX
Background
In ManageIQ Fine release, it is configured to use Ansible Tower for Embedded Ansible role. Integrating Ansible Tower in ManageIQ requires a tower license.
Info
In Gaprindashvili release of ManageIQ, Ansible Tower is replaced by AWX for implementation of Embedded Ansible. AWX is open source project around the Ansible Tower codebase. Unlike Ansible Tower, AWX doesn't requires license to be added for enabling Embedded Ansible in ManageIQ.
AWX inside ManageIQ Appliance
AWX is deployed as group of containers inside ManageIQ appliance. EVM manage awx containers using the docker-api
gem. When Embedded Ansible role is enabled on an appliance, it pulls latest awx docker images and run the containers.
To enlist docker images, type docker images
in the terminal of ManageIQ appliance.
These four docker images are necessary to start awx properly. AWX docker containers are linked together. To view the running containers, use docker ps
command:
Note
If docker ps
command doesn't display these containers then check the status of 'EmbeddedAnsibleWorker' using cd vmdb; rake evm:status
. Make sure that its status is started.
AWX Containers Log
After the containers are started, it is able to see their logs for monitoring awx progress.
To display logs in terminal, type command as follow:
Access AWX Bash
Sometimes, it is need to access bash for the containers like to check status of ansible job. To access the bash of awx_task, run docker exec -it <container id> /bin/bash
command.
Path /var/lib/awx/job_status/
in container stores the status of tower job.
Last updated