Skip to content

Ansible Role to get inventory data of managed elements from Lenovo xClarity Administratr.

License

Notifications You must be signed in to change notification settings

lenovo/ansible-role-lxca-inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Lenovo LXCA Inventory

Ansible Role to collect get inventory data of managed elements from Lenovo xClarity Administratr.

Requirements

Role Variables

Available variables are listed below, along with description:

Variable Description
uuid uuid of device
id id of job
update_list update list for tasks
discover_ip discover specific ip

Supported Tags

Supported tags are listed below, along with description:

tags Description
chassis chassis details
cmms cmms details
nodes nodes details
discover discover using slp
fans fans details
fanmuxes fanmux details
jobs job details
lxcalog lxca log
powersupplies powersupply details
scalablesystem scalablesystem details
switches switch details
tasks task details and update
users user details
ffdc ffdc for uuid

Dependencies

Connectivity with Lenovo xClarity Administrator.

Example Playbook

To execute an Ansible playbook, use the following command:

ansible-playbook -e "lxca_user=<username> lxca_password=<password>
lxca_url=https://<lxca-ip>" inventory.yml -vvvv

-vvv is an optional verbos command that helps identify what is happening during playbook execution.

- name: get nodes data from LXCA
  hosts: localhost
  connection: local
  tasks:
    - name: get nodes
      pylxca_module:
      login_user: "{{ lxca_user }}"
      login_password: "{{ lxca_password }}"
      auth_url: "{{ lxca_url }}"
      command_options: nodes
      register: rslt
      tags:
        - nodes

About

Ansible Role to get inventory data of managed elements from Lenovo xClarity Administratr.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages