dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
335 stars 163 forks source link

Exemple in OMAM_2.1.1_Users_Guide.pdf are not working #158

Closed roumano closed 3 years ago

roumano commented 4 years ago

Exemple in OMAM_2.1.1_Users_Guide.pdf are not working and haven't been tested at all

Few example of issues :

Configure the iDRAC services attributes

Follow example of Page 31 of OMAM_2.1.1_Users_Guide.pdf

  - name: Configure the iDRAC services attributes
    dellemc_configure_idrac_services:
      idrac_ip: "xx.xx.xx.xx"
      idrac_user: "xxxx"
      idrac_password: "xxxxxxxx"
      share_name: "xx.xx.xx.xx:/share"
      share_password: "xxxxxxxx"
      share_user: "xxxx"
      share_mnt: "/mnt/share"
      enable_web_server: "Enabled"
      http_port: "80"
      https_port: "443"
      ssl_encryption: "TLS_1_2_Only"
      tls_protocol: "Auto_Negotiate"
      timeout: "1800"
      snmp_enable: "Enabled"
      snmp_protocol: "SNMPv3"
      community_name: "test"
      alert_port: "None"
      discovery_port: "162"
      trap_format: "None"

Issue :

Rerun the ansible playblook :

update field trap_format,

Rerun the ansible playblook :

update field ssl_encryption,

Rerun the ansible playblook :

TASK [Configure the iDRAC services attributes] ***********************************************************************************************************************************
fatal: [epnkvmext3]: FAILED! => {"changed": false, "msg": "value of tls_protocol must be one of: TLS_1_0_and_Higher, TLS_1_1_and_Higher, TLS_1_2_Only, got: Auto_Negotiate"}

update the field tls_protocol attribut,

Rerun the ansible playblook :

TASK [Configure the iDRAC services attributes] ***********************************************************************************************************************************
fatal: [epnkvmext3]: FAILED! => {"changed": false, "msg": "Dell EMC OMSDK library is required for this module"}

Configure iDRAC network settings

Follow example of Page 34 of OMAM_2.1.1_Users_Guide.pdf : Configure iDRAC network settings

  tasks:
# Configure iDRAC network Page 32
  - name: Configure iDRAC network settings.
    dellemc.openmanage.idrac_network:
      idrac_ip: "192.168.0.1"
      idrac_user: "user_name"
      idrac_password: "user_password"
      share_name: "192.168.0.1:/share"
      share_password: "share_pwd"
      share_user: "share_user"
      share_mnt: "/mnt/share"
      register_idrac_on_dns: Enabled
      dns_idrac_name: None
      auto_config: Disabled
      static_dns: None
      setup_idrac_nic_vlan: Enabled
      vlan_id: 0
      vlan_priority: 1
      enable_nic: Enabled
      nic_selection: Dedicated
      failover_network: T_None
      auto_detect: Disabled
      auto_negotiation: Enabled
      network_speed: T_1000
      duplex_mode: Full
      nic_mtu: 1500
      ip_address: "192.168.0.1"
      enable_dhcp: Enabled
      enable_ipv4: Enabled
      static_dns_1: "192.168.0.1"
      static_dns_2: "192.168.0.1"
      dns_from_dhcp: Enabled
      static_gateway: None
      static_net_mask: None

Same kind of issue :

TASK [Configure iDRAC network settings.] *****************************************************************************************************************************************
fatal: [epnkvmext3]: FAILED! => {"changed": false, "msg": "value of auto_config must be one of: Enabled, Disabled, got: None"}

maybe lot of other attribute and other example are not working at all...

jagadeeshnv commented 3 years ago

@roumano This has been fixed. Thank you