This repo contains Ansible playbooks for different services/environments, in order to automate and maintain vms/lxc, services and applications within a server-infrastructure/homelab. This repo works thanks to ansible, I prefered to integrate it with Semaphore in order to have a GUI.
├── debian12-playbook/ # playbooks for base Debian 12 VM management
├── k8s-playbook/ # k8s maintenance and automation (WIP)
├── docker-playbook/ # Docker host setup/container-updates/cleanup
└── README.md
- ansible installed
- semaphore installed
1. in semaphore GUI:
- add this repo in "Repositories" tab
- create a new Task Template -> Ansible playbook
- set the playbook path based on this repo (e.g. `debian12-playbook/apt-update.yml`)
2. assign the correct inventory and repo and variable group (VG is used to overwrite default variable in playbook, so you have to create VG before creating this automation).
3. run the task manually or schedule it.
all playbooks in this repo are written with:
hosts: allto run a playbook on a specific host or group, use the "Limit" field during ansible-playbook setup or pass the --limit flag via CLI:
ansible-playbook playbook.yml --limit svc-ncloudbtw feel free to propose any changes via pull request or open an issue in case there something that is not working as expected