A set of Ansible playbooks for provisioning Arch Linux.
Inspired by pigmonkey/spark playbook.
-
Download and verify latest ArchLinux ISO:
make iso
-
Write the ISO image to a USB flash drive:
dd bs=4M if=archlinux-$VERSION-dual.iso of=/dev/sdX status=progress && sync
-
Boot into ArchLinux Live CD and connect to the Internet.
Start
iwctl
prompt, then connect to WiFi with:station wlan0 connect <ssid>
-
Remount root partition to increase disk space for the installation.
mount -o remount,size=1G /run/archiso/cowspace
-
Install Git and Ansible:
pacman -Sy git ansible
-
Download and decompress playbook from GitHub:
git clone https://github.com/rkiyanchuk/ansible-arch-linux cd ansible-arch-linux
-
Install dependent roles and run Ansible to provision base system:
ansible-playbook install.yml
-
After the reboot login into the new system, configure WiFi via
nmtui
, and run Ansible to install and configure full-featured Arch Linux:ansible-galaxy install kewlfft.aur ansible-playbook --ask-become-pass configure.yml
sudo fprint-enroll ruslan
Generating SSH key:
ssh-keygen -t ed25519 -C "${USER}@${HOSTNAME}-$(date -I)"