You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
415 B
20 lines
415 B
3 years ago
|
---
|
||
|
- name: Check if EFI directory exists.
|
||
|
stat:
|
||
|
path: /sys/firmware/efi
|
||
|
register: private_efi_directory_exists
|
||
|
|
||
|
- name: Set efi_mode fact.
|
||
|
set_fact:
|
||
|
efi_mode: "{{ private_efi_directory_exists.stat.exists }}"
|
||
|
|
||
|
- name: Check internet connectivity.
|
||
|
uri:
|
||
|
url: https://archlinux.org
|
||
|
status_code: "200"
|
||
|
timeout: 30
|
||
|
|
||
|
- name: Sync time.
|
||
|
command: timedatectl set-ntp true
|
||
|
changed_when: true
|