dellemc.openmanage.ome_application_certificate module – This module allows to generate a CSR and upload the certificate
Note
This module is part of the dellemc.openmanage collection (version 4.4.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.openmanage
.
To use it in a playbook, specify: dellemc.openmanage.ome_application_certificate
.
New in version 2.1.0: of dellemc.openmanage
Synopsis
This module allows the generation a new certificate signing request (CSR) and to upload the certificate on OpenManage Enterprise.
Requirements
The below requirements are needed on the host that executes this module.
python >= 2.7.5
Parameters
Parameter |
Comments |
---|---|
Name of the business that issued the certificate. This option is applicable for |
|
Choices:
|
|
Country in which the issuer resides. This option is applicable for |
|
State in which the issuer resides. This option is applicable for |
|
Name of the department that issued the certificate. This option is applicable for |
|
Name of the certificate issuer. This option is applicable for |
|
Email associated with the issuer. This option is applicable for |
|
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
|
Local address of the issuer of the certificate. This option is applicable for |
|
OpenManage Enterprise or OpenManage Enterprise Modular password. |
|
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. Default: 443 |
|
Local path of the certificate file to be uploaded. This option is applicable for |
|
OpenManage Enterprise or OpenManage Enterprise Modular username. |
Notes
Note
If a certificate is uploaded, which is identical to an already existing certificate, it is accepted by the module.
This module does not support
check_mode
.
Examples
---
- name: Generate a certificate signing request
dellemc.openmanage.ome_application_certificate:
hostname: "192.168.0.1"
username: "username"
password: "password"
command: "generate_csr"
distinguished_name: "hostname.com"
department_name: "Remote Access Group"
business_name: "Dell Inc."
locality: "Round Rock"
country_state: "Texas"
country: "US"
email: "[email protected]"
- name: Upload the certificate
dellemc.openmanage.ome_application_certificate:
hostname: "192.168.0.1"
username: "username"
password: "password"
command: "upload"
upload_file: "/path/certificate.cer"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details of the generated certificate. Returned: on success Sample: {“CertificateData”: “—–BEGIN CERTIFICATE REQUEST—–GHFSUEKLELE af3u4h2rkdkfjasczjfefhkrr/frjrfrjfrxnvzklf/nbcvxmzvndlskmcvbmzkdk kafhaksksvklhfdjtrhhffgeth/tashdrfstkm@kdjFGD/sdlefrujjfvvsfeikdf yeufghdkatbavfdomehtdnske/tahndfavdtdfgeikjlagmdfbandfvfcrfgdtwxc qwgfrteyupojmnsbajdkdbfs/ujdfgthedsygtamnsuhakmanfuarweyuiwruefjr etwuwurefefgfgurkjkdmbvfmvfvfk==—–END CERTIFICATE REQUEST—–”} |
|
Details of the HTTP error. Returned: on HTTP error Sample: {“error”: {“@Message.ExtendedInfo”: [{“Message”: “Unable to upload the certificate because the certificate file provided is invalid.”, “MessageArgs”: [], “MessageId”: “CSEC9002”, “RelatedProperties”: [], “Resolution”: “Make sure the CA certificate and private key are correct and retry the operation.”, “Severity”: “Critical”}], “code”: “Base.1.0.GeneralError”, “message”: “A general error has occurred. See ExtendedInfo for more information.”}} |
|
Overall status of the certificate signing request. Returned: always Sample: “Successfully generated certificate signing request.” |
Authors
Felix Stephen (@felixs88)