Skip to content

Commit

Permalink
playbooks: do not set UEFI boot variables by default
Browse files Browse the repository at this point in the history
The Ansible variable create_efi_entries has to be defined if you want
Ansible to create SEAPATH UEFI boot variables.

Note: if you use one of the SEAPATH flash image, SEAPATH UEFI boot
variables will be set by it.

Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed Nov 21, 2022
1 parent 5f3b0cf commit 1f86bc4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions playbooks/ci_set_efi_boot_entries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
hosts: cluster_machines
gather_facts: false
tasks:
- name: Define SEAPATH boot entries if needed
script: "../scripts/add_seapath_boot_entries.sh"
register: result
changed_when: result.rc == 2
failed_when: result.rc == 1
- name: Reboot on default slot
include_tasks: tasks/soft_restart_machine.yaml
when: result.rc == 2
- block:
- name: Define SEAPATH boot entries if needed
script: "../scripts/add_seapath_boot_entries.sh"
register: result
changed_when: result.rc == 2
failed_when: result.rc == 1
- name: Reboot on default slot
include_tasks: tasks/soft_restart_machine.yaml
when: result.rc == 2
when: create_efi_entries is defined and create_efi_entries

0 comments on commit 1f86bc4

Please sign in to comment.