dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
340 stars 165 forks source link

[BUG]: email_address required in idrac_certificates module #582

Closed GamerGun closed 11 months ago

GamerGun commented 1 year ago

Bug Description

Hi,

email_address should NOT be required in the idrac_certificates module;

cert_params dictionary Certificate parameters to generate signing request.
email_address string / required The email associated with the CSR.

Since in the iDRAC GUI, it is not, see screenshot below.

Component or Module Name

dellemc.openmanage.idrac_certificates

Ansible Version

2.15.0

Python Version

3.9.16

iDRAC/OME/OME-M version

iDRAC 9

Operating System

RHEL 8.8

Playbook Used

dellemc.openmanage.idrac_certificates

Logs

Missing required arguments: email_address found in cert_params

Steps to Reproduce

- name: Check if iDRAC IP is defined

  block:

    - name: Generate CSR on iDRAC

      dellemc.openmanage.idrac_certificates:
        idrac_ip: "{{ idrac_ip }}"
        idrac_user: "{{ idrac_username }}"
        idrac_password: "{{ idrac_password }}"
        certificate_type: "HTTPS"
        command: "generate_csr"
        cert_params:
          common_name: "{{ cert_common_name }}"
          country_code: "NL"
          locality_name: "Somewhere"
          #email_address: someone@somewhere.com
          organization_name: "Company"
          organization_unit: "My Team"
          state_name: "Town"
          subject_alt_name:
            - "{{ cert_common_name }}"
        certificate_path: "ssl/"
        validate_certs: false
      register: csr_result
      delegate_to: localhost

Expected Behavior

CSR without e-mail address

Actual Behavior

Missing required arguments: email_address found in cert_params

Screenshots

Screenshot 2023-11-16 at 13 53 02

Additional Information

No response

GamerGun commented 1 year ago

I'm using dellemc.openmanage:8.4.0

The version from ~/.ansible/collections/ansible_collections/dellemc/openmanage/plugins/modules/idrac_certificates.py however is 7.0.0, not sure if related though