This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ansible:ansible_collections [2025/03/14 14:32] manu [Ansible modules] |
ansible:ansible_collections [2025/03/19 11:13] (current) manu [Ansible collections] |
||
---|---|---|---|
Line 6: | Line 6: | ||
<cli prompt='#'> | <cli prompt='#'> | ||
# ansible-galaxy collection list | # ansible-galaxy collection list | ||
+ | </cli> | ||
+ | |||
+ | <cli prompt='$'> | ||
+ | [ansible@ansib100 download]$ ansible-galaxy collection list -vvvv | ||
+ | ansible-galaxy [core 2.11.4] | ||
+ | config file = /etc/ansible/ansible.cfg | ||
+ | configured module search path = ['/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | ||
+ | ansible python module location = /usr/local/lib/python3.6/site-packages/ansible | ||
+ | ansible collection location = /ansible/.ansible/collections:/usr/share/ansible/collections | ||
+ | executable location = /usr/local/bin/ansible-galaxy | ||
+ | python version = 3.6.8 (default, Nov 15 2024, 08:18:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] | ||
+ | jinja version = 2.10.1 | ||
+ | libyaml = True | ||
+ | Using /etc/ansible/ansible.cfg as config file | ||
+ | Searching /ansible/.ansible/collections/ansible_collections for collections | ||
+ | Found installed collection ibm.power_aix:1.5.1 at '/ansible/.ansible/collections/ansible_collections/ibm/power_aix' | ||
+ | Found installed collection ibm.power_linux_sap:1.0.10 at '/ansible/.ansible/collections/ansible_collections/ibm/power_linux_sap' | ||
+ | Found installed collection ibm.power_aix_oracle_dba:2.0.0 at '/ansible/.ansible/collections/ansible_collections/ibm/power_aix_oracle_dba' | ||
+ | Found installed collection community.general:6.4.0 at '/ansible/.ansible/collections/ansible_collections/community/general' | ||
+ | |||
+ | # /ansible/.ansible/collections/ansible_collections | ||
+ | Collection Version | ||
+ | ------------------------ ------- | ||
+ | community.general 6.4.0 | ||
+ | ibm.power_aix 1.5.1 | ||
+ | ibm.power_aix_oracle_dba 2.0.0 | ||
+ | ibm.power_linux_sap 1.0.10 | ||
+ | </cli> | ||
+ | |||
+ | Set proxy and upgrade a collection | ||
+ | <cli prompt='$'> | ||
+ | [ansible@ansib100 download]$ export https_proxy=http://proxy.test.lu:443 | ||
+ | [ansible@ansib100 download]$ ansible-galaxy collection install ibm.power_aix --upgrade | ||
+ | Starting galaxy collection install process | ||
+ | Process install dependency map | ||
+ | Starting collection install process | ||
+ | Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/ibm-power_aix-2.0.3.tar.gz to /ansible/.ansible/tmp/ansible-local-28837207f02n350/tmpnmabbk_r/ibm-power_aix-2.0.3-n8hzcqfk | ||
+ | Installing 'ibm.power_aix:2.0.3' to '/ansible/.ansible/collections/ansible_collections/ibm/power_aix' | ||
+ | ibm.power_aix:2.0.3 was installed successfully | ||
+ | </cli> | ||
+ | |||
+ | Manually install a collection from a tar file, to a specified directory | ||
+ | <cli prompt='#'> | ||
+ | # ansible-galaxy collection install my_namespace-my_collection-1.0.0.tar.gz -p ./collections | ||
</cli> | </cli> | ||
Line 124: | Line 168: | ||
https://github.com/lg4U (PowerVC) | https://github.com/lg4U (PowerVC) | ||
+ | |||
==== Collections for IBM Storage ==== | ==== Collections for IBM Storage ==== | ||