Skip to content

Ansible playbook for provisioning Arch Linux

License

Notifications You must be signed in to change notification settings

rkiyanchuk/ansible-arch-linux

Repository files navigation

ansible-arch-linux

A set of Ansible playbooks for provisioning Arch Linux. Inspired by pigmonkey/spark playbook.

This playbook now relies on archinstall for initial bootstrapping.

Usage

Create bootable media

  1. Download and verify latest ArchLinux ISO:

    make iso
  2. Write the ISO image to a USB flash drive:

    DEVICE=mmcblk0 make bootable

Install OS

  1. Boot into ArchLinux Live CD and connect to the Internet.

    Start iwctl prompt, then connect to WiFi with:

    station wlan0 connect <ssid>
  2. Install archinstall.

    sudo pacman -Sy archinstall git
  3. Run guided installer.

    python -m archinstall

Configure Arch Linux

  1. Clone repository:

    git clone https://github.com/rkiyanchuk/ansible-arch-linux
  2. 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 -r requirements.yaml
    ansible-playbook --ask-become-pass configure.yaml

Post-setup

Add fingerprint authentication

sudo fprint-enroll ruslan

Notes

Generating SSH key:

ssh-keygen -t ed25519 -C "${USER}@${HOSTNAME}-$(date -I)"

About

Ansible playbook for provisioning Arch Linux

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published