Yet another thread on installing collections. Running AWX 19 in K8s. I’ve tried many different things. I have a requirements.yml under the collections directory. My playbook references the collection as well. Yet AWX just doesn’t even try to install the collection, it keeps telling me it can’t find the module I’m using. Outside of AWX, the collection I need installs just fine with ansible-galaxy collection install cisco.aci. My requirements.yml looks like this:
And kubectl logs -f for awx-ee and awx-task show nothing related to pulling down collections from requirements.yml
awx-ee:
INFO 2021/04/26 22:48:25 Client connected to control service
INFO 2021/04/26 22:48:25 Control service closed
INFO 2021/04/26 22:48:25 Client disconnected from control service
INFO 2021/04/26 22:48:27 Client connected to control service
INFO 2021/04/26 22:48:27 Control service closed
INFO 2021/04/26 22:48:27 Client disconnected from control service
INFO 2021/04/26 22:48:27 Client connected to control service
INFO 2021/04/26 22:48:32 Client connected to control service
INFO 2021/04/26 22:48:32 Control service closed
INFO 2021/04/26 22:48:32 Client disconnected from control service
ERROR 2021/04/26 22:48:32 Error updating status file /tmp/receptor/awx-b5f6cf4d4-4rrgl/8oHAqn9Q/status: open /tmp/receptor/awx-b5f6cf4d4-4rrgl/8oHAqn9Q/status.lock: no such file or directory.
DEBUG 2021/04/26 22:49:08 Sending service advertisement: &{awx-b5f6cf4d4-4rrgl control 2021-04-26 22:49:08.314775763 +0000 UTC m=+68645.603393494 1 map }
DEBUG 2021/04/26 22:50:08 Sending service advertisement: &{awx-b5f6cf4d4-4rrgl control 2021-04-26 22:50:08.314902671 +0000 UTC m=+68705.603520367 1 map }
Can i ask for some details on how you did this? I am trying to do the exact same thing. I am new to this style of install with AWX. I used the old (pre 18) versions. I was able to install it using the quickstart guide. . Once I create the execution environment, push it up to a registry, do I then consume that my vanilla install of AWX and the execution environment then modifies my AWX? I am a little confused.
Thanks for the response, I am not sure what you mean by there is an execution environment section. I guess maybe I dont understand what an Execution Environment is used for. At the end of this process I need an AWX Web Ui installed and running that has the hashicorp_vault module installed so when i run playbooks that use it they will work as expected.
The way I THINK it works
Install AWX using quickstart guide.
Build a custom EE environment
Push up to a registry
Login to AWX and add my custom EE
It somehow modifies my AWX. (I dont see how this would work, but its all I can come up from the small amount of documentation i am able to find)
AWX spins up a container with your EE when the time has come to run a playbook. Ansible really runs inside your EE container. You simply point your job templates or entire project to any EE you want. You can see it’s indeed your EE running when observing the stdout stream while a playbook is executed, if your EE contains collections or a version of Ansible which differs from the default EE.
I see that a workflow job template runs each job in a separate EE container, is it possible to configure either at workflow or other place, to run all the jobs in the same EE pod/container?
Thank you. In thase case we need to use ‘set_facts’ module to pass output from a job as input to the next jobs in a workflow template, is that right?
Let me know if there are any other recommended methods to do the same.