jbouter/ansible-pc
Ansible codebase to install my machines
- Jinja 55.5%
- Shell 19.5%
- Vim Script 16.3%
- Lua 8.7%
Ansible PC
This will set up my PC to my liking. Supports both KDE and GNOME. Explore the Ansible docs
Tested on:
- Arch Linux
- Debian Sid
- Fedora 35
- OpenSUSE Tumbleweed
- Ubuntu 22.04 (and derivatives)
Preface/Notes
Before starting, a few things must be configured on the OS.
Ubuntu/Debian
apt install -y git python3-virtualenv python3-venv python3-dev python3-wheel libxml2-dev libxslt-dev libssl-dev linux-headers-generic build-essential
Fedora
dnf install -y git python3-virtualenv python3-devel libxml2-devel kernel-headers kernel-devel
Arch Linux
sudo pacman -S git python-pip python-virtualenv base-devel
OpenSUSE
sudo zypper in git-core
Setting up the Virtual Environment
Set up the virtual environment as follows:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Every time you work with Ansible, source the virtualenv (source env/bin/activate)
Downloading the required ansible collections from Ansible Galaxy
Download the required Ansible collections from galaxy by running the following command
ansible-galaxy install -r requirements.yml
Running the privisioning
Executing is as simple as running:
ansible-playbook playbooks/provision.yml
Sources
Icons made by Prosymbols from www.flaticon.com