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:25] manu |
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 22: | Line 66: | ||
| <cli prompt='$'> | <cli prompt='$'> | ||
| [ansible@lnx100 ~]$ ansible-doc --list | [ansible@lnx100 ~]$ ansible-doc --list | ||
| - | a10_server Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' server object | + | a10_server Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' server object |
| - | a10_server_axapi3 Manage A10 Networks AX/SoftAX/Thunder/vThunder devices | + | a10_server_axapi3 Manage A10 Networks AX/SoftAX/Thunder/vThunder devices |
| - | a10_service_group Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' service groups | + | a10_service_group Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' service groups |
| - | a10_virtual_server Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' virtual servers | + | a10_virtual_server Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' virtual servers |
| - | accelerate UNDOCUMENTED | + | accelerate UNDOCUMENTED |
| Or | Or | ||
| Line 35: | Line 79: | ||
| <cli prompt='$'> | <cli prompt='$'> | ||
| [ansible@lnx100 ~]$ ansible-doc -F | [ansible@lnx100 ~]$ ansible-doc -F | ||
| - | a10_server /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_server.py | + | a10_server /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_server.py |
| - | a10_server_axapi3 /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_server_axapi3.py | + | a10_server_axapi3 /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_server_axapi3.py |
| - | a10_service_group /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_service_group.py | + | a10_service_group /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_service_group.py |
| - | a10_virtual_server /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_virtual_server.py | + | a10_virtual_server /usr/local/lib/python3.6/site-packages/ansible/modules/network/a10/a10_virtual_server.py |
| </cli> | </cli> | ||
| Line 75: | Line 119: | ||
| [Default: (null)] | [Default: (null)] | ||
| type: dict | type: dict | ||
| + | ... | ||
| + | EXAMPLES: | ||
| + | |||
| + | - name: Create user aixguest1010 | ||
| + | ibm.power_aix.user: | ||
| + | state: present | ||
| + | name: aixguest1010 | ||
| + | change_passwd_on_login: False | ||
| + | password: as$12ndhkfjk$1c | ||
| + | attributes: | ||
| + | home: /home/test/aixguest1010 | ||
| + | data: 1272 | ||
| + | |||
| </cli> | </cli> | ||
| Line 111: | Line 168: | ||
| https://github.com/lg4U (PowerVC) | https://github.com/lg4U (PowerVC) | ||
| + | |||
| ==== Collections for IBM Storage ==== | ==== Collections for IBM Storage ==== | ||