Users Guide
tasks:
- name: Retrieve basic inventory of all devices.
ome_device_info:
hostname: "192.168.0.1"
username: "username"
password: "password"
4. Now run the playbook. Run the following command from the directory where you created the inventory and the playbook:
ansible-playbook playbook.yml -i inventory
5. Press Enter.
With OpenManage Ansible Modules, you can construct a playbook with a set of modules resulting in an automation workflow for
configuration, deployments, and updates of PowerEdge and modular servers.
To view the list of all available OME modules:
1. Run the following command on the Ansible control machine:
ansible-doc -l | grep "ome"
2. Press Enter.
List of the available OME modules is displayed.
To view the documentation of a module:
1. Run the following command on the Ansible control machine:
ansible-doc <module name>
2. Press Enter.
View device information
Module: ome_device_info
Synopsis
This module retrieves the list of devices in the inventory of OpenManage Enterprise along with the details of each device.
Options
Table 55. ome_device_info
Parameter Required Default Choices Comments
hostname Yes NA NA
Target IP Address or
hostname
username Yes NA NA Target username
password Yes NA NA Target user password
port No 443 NA Target device HTTPS port
fact_subset No basic_inventory
• basic_inventory
• detailed_inventory
• subsystem_health
• C(basic_inventory)
returns the list of the
devices.
• C(detailed_inventory)
returns the inventory
details of specified
devices.
• C(subsystem_health)
returns the health
status of specified
devices.
Modules for OpenManage Enterprise (OME) 57