community.general.lxca_cmms module – Custom module for lxca cmms inventory utility
Note
This module is part of the community.general collection (version 6.6.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.lxca_cmms
.
Synopsis
This module returns/displays a inventory details of cmms
Requirements
The below requirements are needed on the host that executes this module.
pylxca
Parameters
Parameter |
Comments |
---|---|
lxca https full web address |
|
uuid of chassis, this is string with length greater than 16. |
|
options to filter nodes information Choices:
|
|
The password for use in HTTP basic authentication. |
|
The username for use in HTTP basic authentication. |
|
uuid of device, this is string with length greater than 16. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
Additional detail about pylxca can be found at https://github.com/lenovo/pylxca
Playbooks using these modules can be found at https://github.com/lenovo/ansible.lenovo-lxca
Check mode is not supported.
Examples
# get all cmms info
- name: Get nodes data from LXCA
community.general.lxca_cmms:
login_user: USERID
login_password: Password
auth_url: "https://10.243.15.168"
# get specific cmms info by uuid
- name: Get nodes data from LXCA
community.general.lxca_cmms:
login_user: USERID
login_password: Password
auth_url: "https://10.243.15.168"
uuid: "3C737AA5E31640CE949B10C129A8B01F"
command_options: cmms_by_uuid
# get specific cmms info by chassis uuid
- name: Get nodes data from LXCA
community.general.lxca_cmms:
login_user: USERID
login_password: Password
auth_url: "https://10.243.15.168"
chassis: "3C737AA5E31640CE949B10C129A8B01F"
command_options: cmms_by_chassis_uuid
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
cmms detail from lxca Returned: success Sample: |
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication