Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_attributes/molecule/lifecycle_controller_attr-10551/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge file for lifecycle_controller_attributes
3 hosts: all
4 gather_facts: false
5 vars:
6 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
7 username: "{{ lookup('env', 'IDRAC_USER') }}"
8 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
9 validate_certs: false
10 roles:
11 - role: dellemc.openmanage.idrac_attributes
12 vars:
13 lifecycle_controller_attributes:
14 LCAttributes.1.AutoUpdate: Enabled
15 tasks:
16 - name: Asserting lifecycle_controller_attributes update in check mode
17 ansible.builtin.assert:
18 that: idrac_attributes_out.msg == "Changes found to be applied."
19 when: ansible_check_mode
20 tags: molecule-idempotence-notest
21
22 - name: Asserting lifecycle_controller_attributes update in normal mode
23 ansible.builtin.assert:
24 that:
25 - idrac_attributes_out.msg == "Successfully updated the attributes."
26 when: not ansible_check_mode and idrac_attributes_out.changed
27
28 - name: Asserting lifecycle_controller_attributes update in idempotence mode
29 ansible.builtin.assert:
30 that:
31 - idrac_attributes_out.msg == "No changes found to be applied."
32 when: not ansible_check_mode and not idrac_attributes_out.changed