User Tools

Site Tools


ansible:ansible_collections

This is an old revision of the document!


Ansible collections

Ansible collections

List or verify installed collections

# ansible-galaxy collection list

Ansible plugin

Plugins extend Ansible’s core functionality.

To list plugins, use the modules commands following…

Ansible modules

Modules are a type of plugin that execute automation tasks on a ‘target’ (usually a remote system).

List or verify installed modules — whether built-in or add-on

[ansible@lnx100 ~]$ ansible-doc --list
a10_server                                                    Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' server object
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_virtual_server                                            Manage A10 Networks AX/SoftAX/Thunder/vThunder devices' virtual servers
accelerate                                                    UNDOCUMENTED

Or
$ ansible-doc -t module -l

Paths for modules:

[ansible@lnx100 ~]$ ansible-config dump |grep DEFAULT_MODULE_PATH
DEFAULT_MODULE_PATH(default) = ['/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']

To use a specific module, use

    - name: unzip the zip folder
      ansible.builtin.unarchive:
        src: /var/www/html/techmax-main.zip
        dest: /var/www/html
        remote_src: yes

Man page for each module is available using

[ansible@lnx100 ~]$ ansible-doc -t module ibm.power_aix.user
> IBM.POWER_AIX.USER    (/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/user.py)

        This module facilitates the creation of a new user with provided attributes, the modification of attributes or deletion of an existing user.

OPTIONS (= is mandatory):

- attributes
        Specifies the attributes to be changed or created for the user.
        For details on valid user attributes, please refers to IBM documentation at https://www.ibm.com/support/knowledgecenter/ssw_aix_72/c_commands/chuser.html.
        If you have the proper authority, you can set the following usual user attributes account_locked, admin, admgroups, capabilities, cpu, daemon, data, default_roles,
        dictionlist, domains, expires, fsize, fsize_hard, gecos, groups, histexpire, home, id, login, loginretries, logintimes, maxages, maxexpired, maxrepeats, maxulogs,
        minage, minalpha, mindiff, minlen, minother, nofiles, nproc, pgrp, projects, pwdchecks, pwdwarntime, rcmds, rlogin, roles, rss, shell, stack, su, sugroups, sysenv,
        threads, tpath, ttys, umask, usrenv, etc.
        [Default: (null)]
        type: dict

Sources collections

Collections for VMware

Ansible collection community.​vmware

https://docs.ansible.com/ansible/latest/collections/community/vmware/index.html

Python pyVmomi

https://github.com/vmware/pyvmomi

VMware vSphere Automation SDK for Python

https://github.com/vmware/vsphere-automation-sdk-python

Collections for IBM Power / AIX

Collections for IBM Storage

Collections for Broadcom/Brocade SAN switches

ansible/ansible_collections.1741958534.txt.gz · Last modified: 2025/03/14 14:22 by manu