Execution
Date 06 Aug 2025 17:25:01 +0100
Duration 00:00:23.48
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
36 Hosts
1 Tasks
36 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/check_efi_boot_enabled.yaml

---
- name: Playbook to check if we are in EFI mode or not
  hosts: all
  gather_facts: false
  tasks:
    - name: Check if we are or not
      ansible.builtin.shell: |
        set -o pipefail
        efibootmgr
        # [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
      args:
        executable: /bin/bash
      register: out
      changed_when: "'EFI variables are not supported on this system.' not in out.stdout"