dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
329 stars 162 forks source link

[QUESTION]:How do i update the iDRAC hostname, tried dellemc.openmanage.idrac_attributes but doesn't work #732

Open mparmar-pure opened 2 weeks ago

mparmar-pure commented 2 weeks ago

How do i update the iDRAC hostname, tried dellemc.openmanage.idrac_attributes

    - name: Configure new iDRAC hostname
      loop: "{{ gsheet_device_list.stdout }}"
      delegate_to: localhost
      dellemc.openmanage.idrac_attributes:
          idrac_ip: "{{ item[1] }}"
          idrac_user: "{{ idrac_username }}"
          idrac_password: "{{ idrac_password }}"
          validate_certs: False
          system_attributes:
              ServerOS.1.HostName: "{{ item[0]|lower }}-ipmi.{{ system_domain }}"

It is updating the property for ServerOS.1.HostName":"test.domain" but entry under iDRAC --> Connectivity --> DNS iDRAC Name* does not change and hence i am not able to log in using new domain address

anupamaloke commented 3 days ago

@mparmar-pure, I know this is a very late response. However, if you are still looking for an answer to this, then you need to set the NIC.1.DNSRacName attribute. For e.g.,


- name: configure iDRAC DNS settings
  dellemc.openmanage.idrac_attributes:
    idrac_ip: "{{ idrac_ip }}"
    idrac_user: "{{ idrac_user }}"
    idrac_password: "{{ idrac_password }}"
    validate_certs: False
    idrac_attributes:
      NIC.1.Enable: "Enabled"
      NIC.1.DNSRegister: "Enabled"
      NIC.1.DNSRacName: "idrac-SVCTAG"
      NIC.1.DNSDomainName: "dnslocaldomain"
      NIC.1.DNSDomainNameFromDHCP: "Disabled"