{"id":15779985,"url":"https://github.com/rgl/ansible-vsphere-ubuntu-vm","last_synced_at":"2026-05-05T07:32:51.112Z","repository":{"id":228880121,"uuid":"775165980","full_name":"rgl/ansible-vsphere-ubuntu-vm","owner":"rgl","description":"Example Ansible project that creates a Ubuntu VMware vSphere Virtual Machine","archived":false,"fork":false,"pushed_at":"2024-03-25T21:12:28.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T11:05:56.059Z","etag":null,"topics":["ansible","ansible-playbook","example","ubuntu","vmware","vmware-vsphere"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-20T22:03:03.000Z","updated_at":"2024-11-08T12:54:03.000Z","dependencies_parsed_at":"2024-03-20T23:29:42.189Z","dependency_job_id":"2ab71ede-73ab-4a1a-8a92-2bf7a90a60c9","html_url":"https://github.com/rgl/ansible-vsphere-ubuntu-vm","commit_stats":null,"previous_names":["rgl/ansible-vsphere-ubuntu-vm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/ansible-vsphere-ubuntu-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fansible-vsphere-ubuntu-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fansible-vsphere-ubuntu-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fansible-vsphere-ubuntu-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fansible-vsphere-ubuntu-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/ansible-vsphere-ubuntu-vm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fansible-vsphere-ubuntu-vm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","example","ubuntu","vmware","vmware-vsphere"],"created_at":"2024-10-04T18:22:12.094Z","updated_at":"2026-05-05T07:32:51.104Z","avatar_url":"https://github.com/rgl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\n[![Build status](https://github.com/rgl/ansible-vsphere-ubuntu-vm/actions/workflows/build.yml/badge.svg)](https://github.com/rgl/ansible-vsphere-ubuntu-vm/actions/workflows/build.yml)\n\nThis is an example Ansible project that creates a Ubuntu VMware vSphere Virtual Machine.\n\nFor a more complete Ansible Playbook see the [rgl/my-ubuntu-ansible-playbooks repository](https://github.com/rgl/my-ubuntu-ansible-playbooks).\n\n# Usage\n\nExecute the following procedure in a Ubuntu machine.\n\nInstall the [test/templates/ubuntu-24.04-amd64-vsphere virtual machine template](https://github.com/rgl/ubuntu-vagrant) in your VMware vSphere environment.\n\nInstall Docker.\n\nOpen the [inventory file](inventory.yml) and modify the virtual machines details to fit your environment.\n\nSet your VMware vSphere details:\n\n```bash\ncat \u003esecrets.sh \u003c\u003c'EOF'\nexport VM_VSPHERE_HOSTNAME='vsphere.local'\nexport VM_VSPHERE_USERNAME='administrator@vsphere.local'\nexport VM_VSPHERE_PASSWORD='password'\nexport VM_VSPHERE_DATACENTER='Datacenter'\nexport VM_VSPHERE_CLUSTER='Cluster'\nexport VM_VSPHERE_DATASTORE='Datastore'\nexport VM_VSPHERE_TEMPLATE='test/templates/ubuntu-24.04-amd64-vsphere'\nexport VM_VSPHERE_FOLDER='test'\nexport VM_ADMIN_PASSWORD='admin'\nexport VM_GATEWAY='10.0.0.1'\nexport VM_FIRST_IP='10.0.0.11'\nEOF\nsource secrets.sh\n```\n\nLint the playbooks:\n\n```bash\n./ansible-lint.sh --offline --parseable example.yml || echo 'ERROR linting'\n./ansible-lint.sh --offline --parseable example-destroy.yml || echo 'ERROR linting'\n```\n\nList the inventory:\n\n```bash\n./ansible-inventory.sh --list --yaml\n```\n\nCreate and configure the `example1` machine using the [`example.yml` playbook](example.yml): \n\n```bash\n./ansible-playbook.sh --limit=example1 example.yml | tee ansible.log\n```\n\nDestroy the `example1` machine using the [`example-destroy.yml` playbook](example-destroy.yml): \n\n```bash\n./ansible-playbook.sh --limit=example1 example-destroy.yml | tee ansible.log\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fansible-vsphere-ubuntu-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fansible-vsphere-ubuntu-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fansible-vsphere-ubuntu-vm/lists"}