Embedded Ansible using AWX
Last updated
Last updated
In ManageIQ Fine release, it is configured to use 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. 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 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.
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:
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.
Procedure to setup Embedded Ansible in ManageIQ Fine version is described in