Users Guide

Modules for iDRAC
How OpenManage Ansible Modules for iDRAC works
OpenManage Ansible modules uses iDRAC REST APIs based on Redsh standards and Server Conguration Proles (SCP) for automated
conguration, deployment and update of PowerEdge servers. An SCP contains all BIOS, iDRAC, Network and Storage settings of a
PowerEdge server. You can apply them to multiple servers, enabling rapid, reliable, and reproducible conguration.
You can perform an SCP operation using any of the following methods:
Export to or import from a remote network share via CIFS, NFS. Ensure that the remote network share is mounted on the Ansible
controller with read-write privileges for user running the Ansible playbooks.
Export or import via local le streaming (for iDRAC rmware 2.60.60.60 and above).
Setting up a local mount point for a remote network share
Mount the remote network share (CIFS or NFS) locally on the Ansible controller where you want to run the playbook or modules. Local
mount point should have read-write privileges in order for OpenManage Ansible modules to write an SCP le to remote network share that
will be imported by iDRAC.
NOTE
: Refer to Linux man pages for mounting an NFS or CIFS network share on Ansible control machine.
Running your rst iDRAC Playbook
Before you run a playbook to manage your iDRACs, you need to have a valid inventory of target PowerEdge servers. For more information
on inventory, see Ansible documentation.
1 Install OpenManage Ansible Modules either from the dell.com/support or the https://github.com/dell/dellemc-openmanage-ansible-
modules.git repository. For more details, see Dell EM C OpenManage Ansible Modules Installation Guide.
2 Create an inventory le containing a list of the iDRACs. In the following inventory example, we are using the inventory variables to
store the iDRAC IP addresses and the user credentials. For more information on variables, see Ansible documentation.
inventory:
[PowerEdge]
R740.example.com
idrac_ip='192.168.10.10'
idrac_user='root'
idrac_password='calvin'
3 Dene a playbook to fetch the hardware inventory of the servers. Create the playbook in the same directory where you created the
inventory. Following is a playbook example:
playbook.yml
---
- hosts: PowerEdge
connection: local
gather_facts: False
tasks:
- name: Get hardware inventory
dellemc_get_system_inventory:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
3
8 Modules for iDRAC