{"id":28904837,"url":"https://github.com/danielaca18/ansible-cloud-vm","last_synced_at":"2025-07-23T17:08:05.737Z","repository":{"id":293409287,"uuid":"983944656","full_name":"Danielaca18/ansible-cloud-vm","owner":"Danielaca18","description":"An Ansible Role to create an Ubuntu Cloud VM on Proxmox.","archived":false,"fork":false,"pushed_at":"2025-05-15T08:02:52.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T13:02:49.890Z","etag":null,"topics":["ansible","proxmox","ubuntu","vm"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/Danielaca18.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,"zenodo":null}},"created_at":"2025-05-15T06:48:06.000Z","updated_at":"2025-05-15T08:02:56.000Z","dependencies_parsed_at":"2025-05-15T07:48:38.473Z","dependency_job_id":null,"html_url":"https://github.com/Danielaca18/ansible-cloud-vm","commit_stats":null,"previous_names":["danielaca18/ansible-cloud-vm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Danielaca18/ansible-cloud-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielaca18%2Fansible-cloud-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielaca18%2Fansible-cloud-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielaca18%2Fansible-cloud-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielaca18%2Fansible-cloud-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danielaca18","download_url":"https://codeload.github.com/Danielaca18/ansible-cloud-vm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danielaca18%2Fansible-cloud-vm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266717708,"owners_count":23973384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","proxmox","ubuntu","vm"],"created_at":"2025-06-21T13:02:41.961Z","updated_at":"2025-07-23T17:08:05.730Z","avatar_url":"https://github.com/Danielaca18.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Cloud VM\n=========\n\nAn Ansible Role to create an Ubuntu Cloud VM on Proxmox.\n\n[![Ansible Role](https://img.shields.io/badge/ansible--galaxy-ansible--role-blue.svg)](https://galaxy.ansible.com/)\n\nRequirements\n------------\n\nThis role requires community.general collection to be installed.\n\nRequired Variables\n------------------\n\nThe ansible host, proxmox token id and token are required to connect to the proxmox server. The token id is the name of the token, and the token is the actual token string.\n```yaml\nansible_host: \"\"\nproxmox_user: \"\"\nproxmox_token_id: \"\"\nproxmox_token: \"\"\n```\n\nRole Variables\n--------------\n\nAvailable variables are listed below, along with default values (see defaults/main.yml):\n\n```yaml\ncloud_vm_pve_node: \"pve\"\ncloud_vm_image_name: noble-server-clouding-amd64.img\ncloud_vm_image_url: \"https://cloud-images.ubuntu.com/jammy/current/{{ cloud_vm_image_name }}\"\ncloud_vm_storage_pool: pve1\ncloud_vm_storage_size: 150G\n```\n\nThe cloud vm image name and url are required to download the image. The storage pool is the name of the storage pool where the vm will be created. The storage size is the size of the disk for the vm.\n\n```yaml\n\nhostname: {{ inventory_hostname }}\ntimezone: America/Edmonton\nlocale: en-US\nkeyboard_layout: us\n\n```\nThe hostname, timezone, locale and keyboard layout are used to set the hostname, timezone, locale and keyboard layout for the vm.\n\n```yaml\n\ncloud_vm_user: ubuntu\ncloud_vm_pass: password\n\n```\nThe cloud vm user and password are used to set the username and password for the vm.\n\n```yaml\nssh_authorized_keys: []\n```\nThe ssh authorized keys are used to set the ssh keys for the vm. In the form ssh-rsa key user@email\n\n```yaml\n\ncloud_vm_packages:\n  - qemu-guest-agent\n  - git\n  - htop\n  - curl\n  - unzip\n  - python3-pip\n  - emacs\n\ncloud_vm_cmds:\n  - /usr/local/bin/start-qga.sh\n\n```\n\nThe cloud vm packages are the packages that will be installed on the vm. The cloud vm cmds are the commands that will be run on the vm after it is created.\n\n\nDependencies\n------------\n\nNone.\n\nExample Playbook\n----------------\n\nIncluding an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:\n\n    - hosts: servers\n      roles:\n         - { role: username.rolename, x: 42 }\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\nThis role was created in 2023 by Daniel Castro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielaca18%2Fansible-cloud-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielaca18%2Fansible-cloud-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielaca18%2Fansible-cloud-vm/lists"}