Hi,
AWX newb here, I have run into something that I can’t seem to find any info on google…
I am trying to demonstrate AWX to our NetOps team to encourage use for Cisco configuration.
I am using collection cisco.ios the URL to it is in galaxy or the redhat automation hub and is in my requirements.yml…
this works, however there is a feature that has been merged in github that is not in the galaxy collection.
If I were just using ansible I would install the collection from github, but I don’t know how to do that on my AWX instance.
I am just using AWX installed from github on a VM in my lab - no docker images or anything. I could use a shove in the right direction if someone could be so kind.
Regards
Bill
Awx is in fact installed as a docker image. Describe what you will do to install. You could translate that into a playbook and get awx to install into its container. Target the local host in your playbook and you are running against itself.
Ok, that makes sense – I installed the collection on my instance – and it did not have the code I am looking for… so I need to get that worked out first as it would be harder to check it in the container I guess…
Thanks for your input
Bill
The location you installed the collection to might not be available to the job run due to isolation (done via bubblewrap). Speaking from memory, I think /usr/share/collections global install folder works but ~/.ansible/collections for the awx user doesn’t. Again, that’s from memory, I could be wrong.
You can put requirements from SCM into requirements.yml, but support for this only recently merged. https://github.com/ansible/ansible/pull/69154
that merged on May 29th, so you would have to install a fairly recent version of Ansible from devel in order for it to work.