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
ansible-playbook -i inventory/main.yml main.yml