Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_certificate/molecule/reset-10582/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge
3 hosts: all
4 gather_facts: false
5
6 tasks:
7 - name: Reset HTTPS certificate
8 ansible.builtin.import_role:
9 name: idrac_certificate
10 vars:
11 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
12 username: "{{ lookup('env', 'IDRAC_USER') }}"
13 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
14 validate_certs: false
15 command: "reset"
16 certificate_type: "HTTPS"
17
18 - name: Asserting operation with check mode.
19 ansible.builtin.assert:
20 that: idrac_certificate_out.msg == "Changes found to be applied."
21 when: ansible_check_mode
22
23 - name: Asserting operation with Normal/Idempotence mode.
24 ansible.builtin.assert:
25 that: idrac_certificate_out.msg == "Successfully performed the
26 'reset' certificate operation.iDRAC
27 has been reset successfully."
28 when: not ansible_check_mode and idrac_certificate_out.changed
29
30 - name: Waiting for idrac readiness
31 ansible.builtin.wait_for:
32 timeout: 30
33 when:
34 - not ansible_check_mode
35 - idrac_certificate_out is defined
36 - idrac_certificate_out.changed