Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 407 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 407 Bytes

Using ansible playbook to manage my homelab servers

How to use

Write a inventory file

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

ansible-playbook -i inventory/main.yml main.yml