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.
25 lines
512 B
25 lines
512 B
---
|
|
- name: Check if EFI directory exists.
|
|
stat:
|
|
path: /sys/firmware/efi
|
|
register: efi_directory_exists
|
|
|
|
- name: Fail if not in EFI or UEFI.
|
|
fail:
|
|
msg: This playbook only support EFI/UEFI!
|
|
when: not 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
|
|
|
|
- name: Install packages.
|
|
pacman:
|
|
name: git
|
|
update_cache: true
|
|
state: present
|
|
|