Awx - Get a List of Available Collections in your Execution Environment
AWX - get a list of available collections in your execution environment#
Sometimes when building an execution environment image we are not explicit about versions. Later we might need to know the actual collection or Python package versions inside the image.
Check the image#
-
Pull and run the Docker image locally, then enter the shell:
bash docker pull harbor.example.org/awx-execution-envs/ee-example:1.0.2 docker run -ti harbor.example.org/awx-execution-envs/ee-example:1.0.2 /bin/sh-titells Docker to allocate a TTY and start an interactive session. -
List out the collections with:
bash ansible-galaxy collection listExample output:
```text
/usr/share/ansible/collections/ansible_collections#
Collection Version
ansible.netcommon 2.4.0 ansible.utils 2.3.1 community.general 3.6.0 junipernetworks.junos 2.5.0 ```
-
List Python packages and versions:
bash pip freezeExample output:
text ansible-core @ file:///output/wheels/ansible_core-2.11.4.post0-py3-none-any.whl ansible-pylibssh==0.2.0 ansible-runner @ file:///output/wheels/ansible_runner-2.0.0.0a4.dev130-py3-none-any.whl asn1crypto==1.2.0 attrs==21.2.0 Babel==2.7.0 bcrypt==3.2.0