HewlettPackard / ilo-ansible-collection

Ansible Collection and Sample Playbooks for HPE iLO
Apache License 2.0
43 stars 23 forks source link

Howto set the iLO Server Name and Server FQDN #36

Closed willifehler closed 3 months ago

willifehler commented 4 months ago

Hey there,

is it already possible to set the Server Name and Server FQDN? (not the iLO hostname)

Cheers - Willi

willifehler commented 3 months ago

ilo-servername-and-fqdn

willifehler commented 3 months ago

I was able to get the Server Name working by using redfish_config but it seems that Server FQDN is not implemented yet by checking the code.

    - name: Set BIOS attributes
      community.general.redfish_config:
        category: Systems
        command: SetBiosAttributes
        resource_id: 1
        baseuri: "{{ ansible_host }}"
        username: "{{ ilo_user }}"
        password: "{{ ilo_password }}"
        bios_attributes:
          ServerName: "{{ ilo_servername }}"
      register: biossettings
donzef commented 3 months ago

image

willifehler commented 3 months ago

Hi @donzef,

I've already implemented the FQDN by patching it on my own. Thanks a lot.

Willi