jbouter/ansible-server
1
1
Fork
You've already forked ansible-server
0
Ansible codebase to install my servers
  • Jinja 94.5%
  • Shell 5.5%
2026年07月03日 04:03:32 +02:00
collections chore(deps): update dependency ansible.posix to v2.2.1 2026年07月03日 02:02:16 +00:00
images Initial commit 2022年04月13日 22:42:58 +02:00
inventory fix: add new ipv6 address to firewall 2026年02月01日 17:36:10 +01:00
playbooks feat(traefik): configure for nas.intern.kn0x.org 2025年11月06日 23:30:36 +01:00
roles fix(traefik): configure ipv6 on the proper network 2026年02月01日 23:29:29 +01:00
.ansible-lint feat(ansible): Re-introduce linting, fix linting issues 2022年08月22日 15:08:56 +02:00
.editorconfig chore: remove non-existant hosts 2025年01月13日 00:47:27 +01:00
.gitignore feat: add .vscode to gitignore 2025年08月03日 10:48:27 +02:00
.woodpecker.yaml fix(ci): run on more events 2024年09月14日 13:41:38 +02:00
.yamllint feat(ansible): Re-introduce linting, fix linting issues 2022年08月22日 15:08:56 +02:00
ansible.cfg feat: remove deprecated ansible_managed and add requirements.yml 2026年03月15日 22:25:47 +01:00
LICENSE Initial commit 2022年04月13日 22:42:58 +02:00
README.md docs: update venv creation path 2026年03月15日 22:26:32 +01:00
renovate.json feat: update renovate configuration to allow automerging everything 2026年03月11日 22:28:59 +01:00
requirements.txt chore(deps): update dependency ansible to v14.1.0 2026年06月20日 02:03:18 +00:00
requirements.yml chore(deps): update dependency ansible.posix to v2.2.1 2026年07月03日 02:02:16 +00:00

Ansible Server

Ansible Server logo

Tested on:

  • Raspberry pi OS Trixie (Raspberry PI 5, aarch64)
  • Ubuntu 24.04 (VPS, amd64)

Preface/Notes

Before starting, a few things must be configured on the OS.

Ubuntu/Debian

apt install -y git python3-virtualenv python3-dev python3-wheel libxml2-dev \
 libxslt-dev libssl-dev linux-headers-generic build-essential

Setting up the Virtual Environment

Set up the virtual environment as follows:

python3 -m venv env
source env/bin/activate
pip install wheel
pip install ansible

Every time you work with Ansible, source the virtualenv (source .venv/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 collections/requirements.yml

Configuration

Username can be changed from jeffrey to whatever you like in inventory/host_vars/localhost/user.yml GRUB password must be reconfigured by yourself in inventory/host_Vars/localhost/vault.yml by creating a new vault:

Create a new yaml file with the following content:

inventory/host_vars/localhost/vault.yml:

Please read through roles for an explanation on what it all does.

ansible-playbook playbooks/provision.yml

Sources

Server icons created by juicy_fish from www.flaticon.com