Skip to content

Ansible playbook to idempotently setup a bunch of Linux machines

Notifications You must be signed in to change notification settings

staernid/ansible-arch-linux

Repository files navigation

ansible-arch-linux

Ansible playbook to setup my Arch Linux machines (i.e., meant to be run against localhost)

Explanation

  • This is meant for my machine. You can use it as a guide, but please don't blindly run it on your machine (it will break things).
  • This is meant to be run in the Post-installation section of the Installation guide (i.e., after your partitions are setup, user account is created, fstab is setup, chroot, etc...)

Requirements

  1. Install the necessary packages
    sudo pacman -S git python
    
  2. Clone this repo
    ...
    
  3. Install Ansible
    uv sync
    
  4. Install the Ansible requirements
    uv run ansible-galaxy install -r requirements.yml
    
  5. (Optional) Edit the variables in group_vars
  6. (Optional) Run the playbook in check mode to view potential changes
    uv run ansible-playbook main.yml --ask-become-pass --check
    
  7. Run the playbook (enter your user's password when prompted)
    uv run ansible-playbook main.yml --ask-become-pass
    

Update

To update everything (Python packages + Ansible roles) to the latest versions:

uv lock --upgrade && uv run ansible-galaxy install -r requirements.yml --force

About

Ansible playbook to idempotently setup a bunch of Linux machines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published