Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/ome/application/ome_application_certificate.yml

raw symbols SCIP
1 ---
2 - name: Dell OME Application Certificate Signing Request.
3 hosts: ome
4 gather_facts: false
5
6 tasks:
7 - name: Generate certificate signing request.
8 dellemc.openmanage.ome_application_certificate:
9 hostname: "{{ hostname }}"
10 username: "{{ username }}"
11 password: "{{ password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 command: "generate_csr"
14 distinguished_name: "hostname.com"
15 department_name: "Remote Access Group"
16 business_name: "Dell Inc."
17 locality: "Round Rock"
18 country_state: "Texas"
19 country: "US"
20 email: "[email protected]"
21 register: result
22 tags:
23 - generate
24 delegate_to: localhost
25
26 - name: Copy CSR data into a file.
27 ansible.builtin.copy:
28 content: "{{ result.csr_status.CertificateData }}"
29 dest: "csr_data.txt"
30 mode: "0600"
31 tags:
32 - csr-data
33 delegate_to: localhost
34
35 - name: Upload the certificate.
36 dellemc.openmanage.ome_application_certificate:
37 hostname: "{{ hostname }}"
38 username: "{{ username }}"
39 password: "{{ password }}"
40 ca_path: "/path/to/ca_cert.pem"
41 command: "upload"
42 upload_file: "/path/certificate.cer"
43 tags:
44 - upload
45 delegate_to: localhost
46
47 - name: Once certificate uploaded, OME cannot be accessed for few seconds, hence wait for 10 seconds.
48 ansible.builtin.wait_for:
49 host: "{{ hostname }}"
50 port: "{{ port }}"
51 delay: 10
52 tags:
53 - upload
54 delegate_to: localhost