You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
615 B
YAML
25 lines
615 B
YAML
2 weeks ago
|
---
|
||
|
- hosts: debian
|
||
|
gather_facts: yes
|
||
|
become: false
|
||
|
tasks:
|
||
|
# MOSTRAMOS INFORMACIÓN DE LA MÁQUINA
|
||
|
- name: Distribution
|
||
|
debug: msg="{{ansible_hostname}} -- {{ ansible_distribution }}"
|
||
|
|
||
|
# COMPROBAMOS SI TIENE SECURE BOOT
|
||
|
- name: Comprobamos si existe el directory /sys/firmware/efi
|
||
|
stat:
|
||
|
path: /sys/firmware/efi
|
||
|
register: efiDir
|
||
|
|
||
|
- name: "Mostramos un mensaje cuando el directorio ya existe"
|
||
|
debug:
|
||
|
msg: "UEFI"
|
||
|
when: efiDir.stat.exists
|
||
|
|
||
|
- name: "Mostramos un mensaje porque no existe el directorio"
|
||
|
debug:
|
||
|
msg: "BIOS"
|
||
|
when: efiDir.stat.exists == false
|