Skip to content

nicholaswilde/homelab-playbooks

Repository files navigation

🏑 homelab-playbooks πŸš€

task

Ansible playbooks for my homelab


πŸ–ΌοΈ Background

This repo is being used to push configurations to my homelab via SSH.

I'm in the process of using my Homelab Pull repo as a test of using GitOps, similar to Flux CD, to configure my homelab by having each container pull this repo periodically and run ansible locally. Pros of this method are discussed in this Learn Linux TV video.

A downside is that ansible-pull needs to be installed on all containers, thus taking up resources, which goes against my general homelab methodology.


πŸ› οΈ   Usage

ansible-playbook playbooks/setup_lxc.yaml
Vault password:

βš™οΈ   Variables

Variables are stored in roles/<role>/vars/main.yaml which is encrypted using ansible-vault.

The vault password is prompted during run.

# roles/<role>/vars/main.yaml
---
lxc_user: foo
ansible_user: bar
ansible_password: baz

βš–οΈ   License

​​Apache 2.0 License​


πŸ“β€‹ β€‹Author

​This project was started in 2024 by Nicholas Wilde.

About

🏑 Ansible playbooks for my homelab πŸš€

Topics

Resources

License

Stars

Watchers

Forks