jbouter/ansible-pc
1
1
Fork
You've already forked ansible-pc
0
Ansible codebase to install my machines
  • Jinja 55.5%
  • Shell 19.5%
  • Vim Script 16.3%
  • Lua 8.7%
2026年07月14日 04:03:08 +02:00
.ansible feat: swap vscode for vscodium 2025年05月10日 09:11:58 +02:00
images fix(readme): Update to adhere to markdownlint 2023年11月16日 17:00:38 +01:00
inventory feat: install firefox as flatpak 2026年05月13日 23:44:17 +02:00
playbooks fix: replace become: yes with become: true 2026年06月29日 20:53:30 +02:00
roles fix: replace become: yes with become: true 2026年06月29日 20:53:30 +02:00
.ansible-lint feat(ansible|vim): Fix ansible-lint, re-introduce vim 2022年08月22日 15:00:52 +02:00
.editorconfig Add editorconfig 2020年10月02日 18:25:42 +02:00
.gitignore feat: add vscode to gitignore 2025年08月03日 10:48:09 +02:00
.mdlrc fix(readme): Update to adhere to markdownlint 2023年11月16日 17:00:38 +01:00
.woodpecker.yaml feat(woodpecker): configure actual container versions 2026年06月29日 21:07:00 +02:00
.yamllint feat(linting): Add linting test and fix most of its findings 2022年08月09日 00:23:20 +02:00
ansible.cfg fix: remove deprecated ansible_managed configuration 2026年03月15日 22:23:19 +01:00
LICENSE Create LICENSE ( #52 ) 2021年01月18日 13:45:48 +01:00
README.md feat: update for ubuntu 25.04, move from podman to docker 2025年07月24日 17:28:40 +02:00
renovate.json feat: update renovate configuration to allow automerging everything 2026年03月11日 22:23:29 +01:00
requirements.txt chore(deps): update dependency ansible-core to v2.21.2 2026年07月14日 02:02:52 +00:00
requirements.yml chore(deps): update dependency ansible.posix to v2.2.2 2026年07月14日 02:02:57 +00:00

Ansible PC

Ansible PC logo

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