https://github.com/kunish/automate
Configure my homelab environment using ansible
https://github.com/kunish/automate
ansible raspberrypi
Last synced: about 2 months ago
JSON representation
Configure my homelab environment using ansible
- Host: GitHub
- URL: https://github.com/kunish/automate
- Owner: kunish
- License: mit
- Created: 2021-02-12T15:22:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T11:03:07.000Z (over 4 years ago)
- Last Synced: 2025-01-14T11:15:27.779Z (over 1 year ago)
- Topics: ansible, raspberrypi
- Language: Vim script
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Using ansible playbook to manage my homelab servers
## How to use
### Write a inventory file
```bash
cat > inventory/main.yml << EOF
remote:
hosts:
cloud-vm:
ansible_user: ubuntu
ansible_port: 10022
ansible_ssh_private_key_file: ~/.ssh/cloud-vm.key
homelab:
hosts:
workstation:
gateway:
EOF
```
### deploy
```bash
ansible-playbook -i inventory/main.yml main.yml
```