{"id":14984479,"url":"https://github.com/mrlesmithjr/ansible-kvm","last_synced_at":"2025-04-10T20:34:00.525Z","repository":{"id":52297010,"uuid":"44112555","full_name":"mrlesmithjr/ansible-kvm","owner":"mrlesmithjr","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-29T14:33:21.000Z","size":131,"stargazers_count":53,"open_issues_count":0,"forks_count":51,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T18:11:23.278Z","etag":null,"topics":["ansible","ansible-role","kvm","libvirt"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrlesmithjr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-10-12T14:29:08.000Z","updated_at":"2024-08-12T19:19:39.000Z","dependencies_parsed_at":"2025-02-18T00:32:18.794Z","dependency_job_id":"0c864c5f-bdd4-49c7-9cd2-2bff8f6d476a","html_url":"https://github.com/mrlesmithjr/ansible-kvm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-kvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-kvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-kvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-kvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrlesmithjr","download_url":"https://codeload.github.com/mrlesmithjr/ansible-kvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290044,"owners_count":21078923,"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","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-role","kvm","libvirt"],"created_at":"2024-09-24T14:09:08.046Z","updated_at":"2025-04-10T20:34:00.504Z","avatar_url":"https://github.com/mrlesmithjr.png","language":"Jinja","funding_links":["https://www.buymeacoffee.com/mrlesmithjr"],"categories":[],"sub_categories":[],"readme":"# ansible-kvm\n\nAn [Ansible](https://www.ansible.com) role to install [KVM](https://www.linux-kvm.org/page/Main_Page)\n\n## Requirements\n\nInstall [required](./requirements.yml) [Ansible](https://www.ansible.com) roles:\n\n```bash\nsudo ansible-galaxy install -r requirements.yml\n```\n\n## Role Variables\n\n[defaults/main.yml](defaults/main.yml)\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\n```yaml\n- hosts: kvm_hosts\n  vars: {}\n  roles:\n    - role: ansible-kvm\n  tasks: []\n```\n\n## Booting a VM from ISO\n\nYou can boot a defined VM up with an ISO by using the following example:\n\n\u003e NOTE: Defined in your vars. Also, ensure that the default\n\u003e `kvm_manage_vms: false` is changed to `kvm_manage_vms: true`.\n\n```yaml\nkvm_manage_vms: true\nkvm_vms:\n  - name: test_vm\n    autostart: true\n    # Define boot devices in order of preference\n    boot_devices:\n      - cdrom\n      - network\n      - hd\n    cdrom:\n      source: /path/to/iso\n    graphics: false\n    # Define disks in MB\n    disks:\n      - disk_driver: virtio\n        name: test_vm.1\n        size: 36864\n    memory: 512\n    network_interfaces:\n      - source: default\n        network_driver: virtio\n        portgroup: vlan-102\n        type: network\n    state: running\n    vcpu: 1\n```\n\n## License\n\nMIT\n\n## Author Information\n\nLarry Smith Jr.\n\n- [@mrlesmithjr](https://www.twitter.com/mrlesmithjr)\n- [EverythingShouldBeVirtual](http://everythingshouldbevirtual.com)\n- [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com)\n\n\u003ca href=\"https://www.buymeacoffee.com/mrlesmithjr\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlesmithjr%2Fansible-kvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrlesmithjr%2Fansible-kvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlesmithjr%2Fansible-kvm/lists"}