https://github.com/rikdc/home-network-config
Ansible scripts for my home lan
https://github.com/rikdc/home-network-config
ansible selfhosting
Last synced: 5 months ago
JSON representation
Ansible scripts for my home lan
- Host: GitHub
- URL: https://github.com/rikdc/home-network-config
- Owner: rikdc
- Created: 2022-10-08T14:22:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-24T18:35:34.000Z (6 months ago)
- Last Synced: 2025-12-26T07:46:07.780Z (6 months ago)
- Topics: ansible, selfhosting
- Language: Shell
- Homepage:
- Size: 387 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Home Network Configuration
This repository contains the configuration for my homelab network infrastructure, primarily using Ansible for automation.
## K3s Cluster
The inventory file `ansible/inventory/hosts.yml` defines the nodes that form the
K3s cluster. Cluster provisioning is handled by the [k3s-ansible](https://github.com/k3s-io/k3s-ansible) role while storage tasks from the former `k3s_setup` role have been merged into `k8s_persistent_storage`. Install the required Ansible collections with:
```bash
ansible-galaxy collection install kubernetes.core community.kubernetes
```
Alternatively they can be installed from `ansible/requirements.yml` using:
```bash
ansible-galaxy collection install -r ansible/requirements.yml
```
Once the collections are installed and the cluster has been provisioned with
`k3s-ansible`, run the following playbook to configure persistent storage:
```bash
ansible-playbook ansible/playbooks/k3s-setup.yml -i ansible/inventory/hosts.yml
```
Persistent volumes are configured on the controller host via variables in
`host_vars/k3s-controller.yml`. The `k8s_persistent_storage` role provisions the
volumes so they are shared between nodes for high performance workloads.