redfish_config - Manages Out-Of-Band controllers using Redfish APIs

New in version 2.7.

Synopsis

Parameters

Parameter Choices/Defaults Comments
baseuri
required
Base URI of OOB controller
bios_attr_name Default:
null
name of BIOS attribute to update
bios_attr_value Default:
null
value of BIOS attribute to update
category
required
Category to execute on OOB controller
command
required
List of commands to execute on OOB controller
mgr_attr_name Default:
null
name of Manager attribute to update
mgr_attr_value Default:
null
value of Manager attribute to update
password
required
Password for authentication with OOB controller
user
required
User for authentication with OOB controller

Examples

- name: Set BootMode to UEFI
  redfish_config:
    category: Systems
    command: SetBiosAttributes
    bios_attr_name: BootMode
    bios_attr_value: Uefi
    baseuri: "{{ baseuri }}"
    user: "{{ user }}"
    password: "{{ password }}"

- name: Set BootMode to Legacy BIOS
  redfish_config:
    category: Systems
    command: SetBiosAttributes
    bios_attr_name: BootMode
    bios_attr_value: Bios
    baseuri: "{{ baseuri }}"
    user: "{{ user }}"
    password: "{{ password }}"

- name: Enable PXE Boot for NIC1
  redfish_config:
    category: Systems
    command: SetBiosAttributes
    bios_attr_name: PxeDev1EnDis
    bios_attr_value: Enabled
    baseuri: "{{ baseuri }}"
    user: "{{ user }}"
    password: "{{ password }}"

- name: Set BIOS default settings
  redfish_config:
    category: Systems
    command: SetBiosDefaultSettings
    baseuri: "{{ baseuri }}"
    user: "{{ user }}"
    password: "{{ password }}"

- name: Enable NTP in the OOB Controller
  redfish_config:
    category: Manager
    command: SetManagerAttributes
    mgr_attr_name: NTPConfigGroup.1.NTPEnable
    mgr_attr_value: Enabled
    baseuri: "{{ baseuri }}"
    user: "{{ user}}"
    password: "{{ password }}"

- name: Set NTP server 1 to {{ ntpserver1 }} in the OOB Controller
  redfish_config:
    category: Manager
    command: SetManagerAttributes
    mgr_attr_name: NTPConfigGroup.1.NTP1
    mgr_attr_value: "{{ ntpserver1 }}"
    baseuri: "{{ baseuri }}"
    user: "{{ user}}"
    password: "{{ password }}"

- name: Set Timezone to {{ timezone }} in the OOB Controller
  redfish_config:
    category: Manager
    command: SetManagerAttributes
    mgr_attr_name: Time.1.Timezone
    mgr_attr_value: "{{ timezone }}"
    baseuri: "{{ baseuri }}"
    user: "{{ user}}"
    password: "{{ password }}"

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
msg
string
always
Message with action result or error description

Sample:
Action was successful


Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Maintenance

This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.

For a list of other modules that are also maintained by the Ansible Community, see here.

Author

  • Jose Delarosa (github: jose-delarosa)

Hint

If you notice any issues in this documentation you can edit this document to improve it.