Home > Servers > Systems Management > White Papers > Dell PowerEdge: Getting Started with Redfish Ansible Modules > Dell Redfish Ansible modules
Our GitHub site, https://www.github.com/dell, includes a couple of repositories that are dedicated to managing Dell PowerEdge servers using Redfish:
This paper focuses on the redfish-ansible-module repository, which includes all the playbooks that we discuss later in this paper. We recommend that you clone the redfish-ansible-module repository, using git clone https://www.github.com/dell/redfish-ansible-module, on the server, workstation, or virtual machine from which you are running Ansible.
The playbooks and roles defined in the repository use several community-supported Ansible modules—in particular, the redfish_info, redfish_command, redfish_config, idrac_redfish_info, idrac_redfish_command, and idrac_redfish_config modules. These modules are automatically installed when you install the dellemc.openmanage collection.
Running any playbook from this repository requires a couple of configuration items to be set up in the inventory file in the redfish-ansible-module directory. The repository comes with an example of the inventory file, but the two configuration items required are:
[myhosts]
Host01 baseuri=idrac-host01
Host02 baseuri=idrac-host02
The baseuri variable must be set to the DNS entry for the iDRAC of the host. The Redfish modules use the variable to connect to the iDRAC.
[myhosts:vars]
username=<username>
password=<password>
Because the inventory file contains plain text usernames and passwords, take care to set the proper permission to avoid wrongful access.
After these configuration items are set, you can run playbooks. All the playbooks in this repository store their results under the inventory_files directory in the home directory of the user running the ansible-playbook command. The inventory_files directory contains a subdirectory for each of the hosts the playbook runs against, with the result of the playbook being stored in a JSON file.