Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_bios/molecule/resources/prepare.yml

raw symbols SCIP
1 ---
2 - name: Prepare file to update attributes with apply time as Immediate
3 hosts: all
4 gather_facts: false
5 vars:
6 idrac_ip: "{{ lookup('env', 'IDRAC_IP') }}"
7 idrac_port: "{{ lookup('env', 'IDRAC_PORT') }}"
8 tasks:
9 - name: Fetch IDRAC Data
10 ansible.builtin.include_tasks:
11 file: ../__get_data.yml
12 vars:
13 url: "https://{{ idrac_ip }}:{{ idrac_port }}/redfish/v1\
14 /Systems/System.Embedded.1/Bios"
15
16 - name: Fetch the existing boot sequence retry
17 ansible.builtin.set_fact:
18 current_bootseq_retry: "{{
19 idrac_bios_uri_data.json.Attributes.BootSeqRetry }}"
20
21 - name: Set the boot sequence retry mode
22 ansible.builtin.set_fact:
23 set_bootseq_retry: "{{ 'Disabled' if
24 (current_bootseq_retry == 'Enabled') else 'Enabled' }}"
25 when: set_bootseq_retry is not defined
26
27 - name: Copy the variable 'set_bootseq_retry' in file
28 ansible.builtin.copy:
29 content: "{{ set_bootseq_retry }}"
30 dest: "/tmp/boot_seq_retry.txt"
31 mode: "0755"
32 delegate_to: localhost