https://github.com/andrasmaroy/infra
Manage all home infrastructure with automation
https://github.com/andrasmaroy/infra
ansible ansible-playbook automation fluxcd homelab infrastructure-as-code k3s kubernetes terraform
Last synced: 5 months ago
JSON representation
Manage all home infrastructure with automation
- Host: GitHub
- URL: https://github.com/andrasmaroy/infra
- Owner: andrasmaroy
- License: mit
- Created: 2021-09-23T21:55:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-10T09:33:43.000Z (5 months ago)
- Last Synced: 2026-01-11T03:00:20.138Z (5 months ago)
- Topics: ansible, ansible-playbook, automation, fluxcd, homelab, infrastructure-as-code, k3s, kubernetes, terraform
- Language: HCL
- Homepage:
- Size: 1.35 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# infra
## Initial setup
Fill in your SSH public key in [setup.sh](setup.sh) then copy it to the target host and run as root to setup requirements for Ansible.
On the local machine:
0. Optionally create a virtualenv
1. Run `pip install -r requirements.txt` to install dependencies
2. Run `ansible-galaxy install -r requirements.yml` to install ansible dependencies
3. Fill in the `hosts` file along the [example](hosts.example)
## Usage
The playbook can be ran like so:
```bash
ansible-playbook site.yml
```
For a dry run the `check`, `diff` and `verbose` parameters can be added:
```bash
ansible-playbook -C -D -v site.yml
```
To run only on a subset of hosts the `limit` parameter can be added:
```bash
ansible-playbook -l SUBSET site.yml
```