lenovo / ansible-role-lxca-inventory Goto Github PK
View Code? Open in Web Editor NEWAnsible Role to get inventory data of managed elements from Lenovo xClarity Administratr.
License: BSD 3-Clause "New" or "Revised" License
Ansible Role to get inventory data of managed elements from Lenovo xClarity Administratr.
License: BSD 3-Clause "New" or "Revised" License
hello, since module_utils.basic used BSD, for lxca inventory, we should follow which may be more flexible for customer to use that plugin.
Using the example given in the readme:
inventory.yml (Updated to add code block)
- name: get nodes data from LXCA
pylxca_module:
login_user: "{{ lxca_user }}"
login_password: "{{ lxca_password }}"
auth_url: "{{ lxca_url }}"
command_options: nodes
register: rslt
tags:
nodes
I run: ansible-playbook -e "lxca_user=REDACTED lxca_password=REDACTED lxca_url=REDACTED" inventory.yml -vvvv
But I get this error:
`ERROR! 'pylxca_module' is not a valid attribute for a Play
The error appears to be in '/home/ubuntu/inventory.yml': line 3, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
pylxca is installed as per the readme:
pip install pylxca
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pylxca in /usr/local/lib/python3.10/dist-packages (3.2.0)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /usr/lib/python3/dist-packages (from pylxca) (0.9.1)
Requirement already satisfied: unittest2 in /usr/lib/python3/dist-packages (from pylxca) (1.1.0)
Requirement already satisfied: requests>=2.7.0 in /usr/lib/python3/dist-packages (from pylxca) (2.25.1)
As well as ansible:
ansible --version
ansible 2.10.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.