Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kunish/automate

Configure my homelab environment using ansible
https://github.com/kunish/automate

ansible raspberrypi

Last synced: 15 days ago
JSON representation

Configure my homelab environment using ansible

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
```