--- - 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