/ansible-linux

ansible playbooks for my home systems

Primary LanguageShellApache License 2.0Apache-2.0

Ansible Linux

Various ansible scripts I use to setup my home systems. Based on the Arch Linux Installation Guide

Prerequisites

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

Preinstallation

Runs the Preinstallation steps as far as and including mounting the filesystems

ansible-playbook -K arch_preinstall.yml --extra-vars "@vars.yml"

Chroot and Configuration

Run the installation steps after chroot'ing into the system

ansible-playbook -K arch_chroot_install.yml --extra-vars "@vars.yml"

Post Installation

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