Various ansible scripts I use to setup my home systems. Based on the Arch Linux Installation Guide
Install a ansible into a virtual environment
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Create a variables file called vars.yml
(see vars.example.yml
) for an example
for private data. This will not be checked into the repository
Runs the Preinstallation steps as far as and including mounting the filesystems
ansible-playbook -K arch_preinstall.yml --extra-vars "@vars.yml"
Run the installation steps after chroot'ing into the system
ansible-playbook -K arch_chroot_install.yml --extra-vars "@vars.yml"
Run the main post installation steps
ansible-playbook -K site.yml --extra-vars "@vars.yml"
To run a particular role, use the corresponding tag, for example
ansible-playbook -K site.yml -t developer