community / community.general / 2.5.9 / module / idrac_redfish_config Manages servers through iDRAC using Dell Redfish APIs Authors: Jose Delarosa (@jose-delarosa)community.general.idrac_redfish_config (2.5.9) — module
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
For use with Dell iDRAC operations that require Redfish OEM extensions
Builds Redfish URIs locally and sends them to remote iDRAC controllers to set or update a configuration attribute.
- name: Enable NTP and set NTP server and Time zone attributes in iDRAC community.general.idrac_redfish_config: category: Manager command: SetManagerAttributes resource_id: iDRAC.Embedded.1 manager_attributes: NTPConfigGroup.1.NTPEnable: "Enabled" NTPConfigGroup.1.NTP1: "{{ ntpserver1 }}" Time.1.Timezone: "{{ timezone }}" baseuri: "{{ baseuri }}" username: "{{ username}}" password: "{{ password }}"
- name: Enable Syslog and set Syslog servers in iDRAC community.general.idrac_redfish_config: category: Manager command: SetManagerAttributes resource_id: iDRAC.Embedded.1 manager_attributes: SysLog.1.SysLogEnable: "Enabled" SysLog.1.Server1: "{{ syslog_server1 }}" SysLog.1.Server2: "{{ syslog_server2 }}" baseuri: "{{ baseuri }}" username: "{{ username}}" password: "{{ password }}"
- name: Configure SNMP community string, port, protocol and trap format community.general.idrac_redfish_config: category: Manager command: SetManagerAttributes resource_id: iDRAC.Embedded.1 manager_attributes: SNMP.1.AgentEnable: "Enabled" SNMP.1.AgentCommunity: "public_community_string" SNMP.1.TrapFormat: "SNMPv1" SNMP.1.SNMPProtocol: "All" SNMP.1.DiscoveryPort: 161 SNMP.1.AlertPort: 162 baseuri: "{{ baseuri }}" username: "{{ username}}" password: "{{ password }}"
- name: Enable CSIOR community.general.idrac_redfish_config: category: Manager command: SetLifecycleControllerAttributes resource_id: iDRAC.Embedded.1 manager_attributes: LCAttributes.1.CollectSystemInventoryOnRestart: "Enabled" baseuri: "{{ baseuri }}" username: "{{ username}}" password: "{{ password }}"
- name: Set Power Supply Redundancy Policy to A/B Grid Redundant community.general.idrac_redfish_config: category: Manager command: SetSystemAttributes resource_id: iDRAC.Embedded.1 manager_attributes: ServerPwr.1.PSRedPolicy: "A/B Grid Redundant" baseuri: "{{ baseuri }}" username: "{{ username}}" password: "{{ password }}"
baseuri: description: - Base URI of iDRAC required: true type: str command: description: - List of commands to execute on iDRAC - I(SetManagerAttributes), I(SetLifecycleControllerAttributes) and I(SetSystemAttributes) are mutually exclusive commands when C(category) is I(Manager) elements: str required: true type: list timeout: default: 10 description: - Timeout in seconds for URL requests to iDRAC controller type: int category: description: - Category to execute on iDRAC required: true type: str password: description: - Password for authentication with iDRAC type: str username: description: - User for authentication with iDRAC type: str auth_token: description: - Security token for authentication with OOB controller type: str version_added: 2.3.0 version_added_collection: community.general resource_id: description: - The ID of the System, Manager or Chassis to modify required: false type: str version_added: 0.2.0 version_added_collection: community.general manager_attributes: default: {} description: - dictionary of iDRAC attribute name and value pairs to update required: false type: dict version_added: 0.2.0 version_added_collection: community.general manager_attribute_name: description: - (deprecated) name of iDRAC attribute to update required: false type: str manager_attribute_value: description: - (deprecated) value of iDRAC attribute to update required: false type: str
msg: description: Message with action result or error description returned: always sample: Action was successful type: str