Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/idrac/idrac_certificates.yml

raw symbols SCIP
1 ---
2 - name: Dell OpenManage Ansible iDRAC Certificates management.
3 hosts: idrac
4 gather_facts: false
5
6 tasks:
7 - name: Generate https signing request
8 dellemc.openmanage.idrac_certificates:
9 idrac_ip: "{{ idrac_ip }}"
10 idrac_user: "{{ idrac_user }}"
11 idrac_password: "{{ idrac_password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 command: "generate_csr"
14 certificate_type: "HTTPS"
15 certificate_path: "/home/omam/mycert_dir"
16 cert_params:
17 common_name: "sample.domain.com"
18 organization_unit: "OrgUnit"
19 locality_name: "Bangalore"
20 state_name: "Karnataka"
21 country_code: "IN"
22 email_address: "[email protected]"
23 organization_name: "OrgName"
24 subject_alt_name:
25 - 192.198.2.1
26 delegate_to: localhost
27
28 - name: Import a SSL certificate.
29 dellemc.openmanage.idrac_certificates:
30 idrac_ip: "{{ idrac_ip }}"
31 idrac_user: "{{ idrac_user }}"
32 idrac_password: "{{ idrac_password }}"
33 ca_path: "/path/to/ca_cert.pem"
34 command: "import"
35 certificate_type: "HTTPS"
36 certificate_path: "/path/to/cert.pem"
37 delegate_to: localhost
38
39 - name: Import an HTTPS certificate along with its private key.
40 dellemc.openmanage.idrac_certificates:
41 idrac_ip: "{{ idrac_ip }}"
42 idrac_user: "{{ idrac_user }}"
43 idrac_password: "{{ idrac_password }}"
44 ca_path: "/path/to/ca_cert.pem"
45 command: "import"
46 certificate_type: "HTTPS"
47 certificate_path: "/path/to/cert.pem"
48 ssl_key: "/path/to/private_key.pem"
49 delegate_to: localhost
50
51 - name: Export a SSL certificate.
52 dellemc.openmanage.idrac_certificates:
53 idrac_ip: "{{ idrac_ip }}"
54 idrac_user: "{{ idrac_user }}"
55 idrac_password: "{{ idrac_password }}"
56 ca_path: "/path/to/ca_cert.pem"
57 command: "export"
58 certificate_type: "HTTPS"
59 certificate_path: "/home/omam/mycert_dir"
60 delegate_to: localhost
61
62 - name: Import a CSC certificate.
63 dellemc.openmanage.idrac_certificates:
64 idrac_ip: "{{ idrac_ip }}"
65 idrac_user: "{{ idrac_user }}"
66 idrac_password: "{{ idrac_password }}"
67 ca_path: "/path/to/ca_cert.pem"
68 command: "import"
69 certificate_type: "CSC"
70 certificate_path: "/path/to/cert.pem"
71 delegate_to: localhost
72
73 - name: Import a custom certificate with a passphrase.
74 dellemc.openmanage.idrac_certificates:
75 idrac_ip: "{{ idrac_ip }}"
76 idrac_user: "{{ idrac_user }}"
77 idrac_password: "{{ idrac_password }}"
78 command: "import"
79 certificate_type: "CUSTOMCERTIFICATE"
80 certificate_path: "/path/to/idrac_cert.p12"
81 passphrase: "cert_passphrase"
82 reset: false
83 delegate_to: localhost
84
85 - name: Export a Client trust certificate.
86 dellemc.openmanage.idrac_certificates:
87 idrac_ip: "{{ idrac_ip }}"
88 idrac_user: "{{ idrac_user }}"
89 idrac_password: "{{ idrac_password }}"
90 ca_path: "/path/to/ca_cert.pem"
91 command: "export"
92 certificate_type: "CLIENT_TRUST_CERTIFICATE"
93 certificate_path: "/home/omam/mycert_dir"
94 delegate_to: localhost