Skip to content

archinstall & ansible configuration for quick Arch Linux bootstrapping.

Notifications You must be signed in to change notification settings

bcyran/arch-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Personal Arch Linux bootstrapping

archinstall

Once booted into archiso, run:

archinstall --config https://raw.githubusercontent.com/bcyran/arch-bootstrap/main/archinstall/user_configuration.json

You only need to set the disk layout and root password, ignore other options. Once satisfied, confirm the installation. After the process finishes, reboot into the fresh install and login as root.

Ansible

Clone the repo into /tmp:

git clone https://github.com/bcyran/arch-bootstrap.git /tmp/arch-bootstrap

Enter ansible directory:

cd /tmp/arch-bootstrap/ansible

Install required collections:

ansible-galaxy collection install -r requirements.yml

Adjust hosts.yml contents:

---
all:
  hosts:
    home:
      ansible_host: localhost

Replace home with work or vm as needed.

Run the playbook:

ansible-playbook -i hosts.yml playbook.yml --ask-become-pass --skip-tags {xorg,wayland}

You probably want to install only one of the xorg or wayland configs and skip the other.

If it's the first time the playbook is ran on the given machine, and user account didn't exist before, you will be asked to provide the desired password.

After the playbook is finished, logout and login again - ready graphical environment should be started.

About

archinstall & ansible configuration for quick Arch Linux bootstrapping.

Topics

Resources

Stars

Watchers

Forks