mirror of
https://github.com/de-it-krachten/ansible-role-vmware
synced 2026-05-14 03:51:49 +00:00
No description
- Jinja 100%
# [1.5.0](https://github.com/de-it-krachten/ansible-role-vmware/compare/v1.4.0...v1.5.0) (2026-03-15) ### Features * Added support for Fedora 43 ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-vmware
Manage VMWare resources like templates, vms etc
Dependencies
Roles
None
Collections
- community.vmware
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 8
- RockyLinux 9
- RockyLinux 10
- OracleLinux 8
- OracleLinux 9
- OracleLinux 10
- AlmaLinux 8
- AlmaLinux 9
- AlmaLinux 10
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Upload iso images to vcenter
vm_iso_upload: false
# Delete the VM before creating the image
vm_destroy: yes
# Create the VM before creating the image
vm_create: yes
# Convert vm into a template
vm_template: yes
# Startup
vm_startup: no
# Type of ISO file to use
vm_iso_type: 'autoinstall'
# Amount of VM deployment in parallel
vmware_parallel_deployments: 1
# Name of the VM
# vm_name: template-ubuntu2204
# VM guest ID (OS-type)
# vm_guest_id: ubuntu64Guest
# Folder to put VM/Template into
vm_folder: /templates
# VM settings
vmware_vm_settings:
guest_id: "{{ vm_guest_id }}"
disk:
- size_gb: 60
type: thick
autoselect_datastore: true
# datastore: "{{ vm_datastore }}"
cdrom: []
# cdrom:
# - type: none
# controller_type: ide
# controller_number: 0
# unit_number: 0
hardware:
# CPU
num_cpus: 2
# num_cpu_cores_per_socket: 1
hotadd_cpu: true
# Memory
memory_mb: 2048
memory_reservation_lock: true
hotadd_memory: true
# boot
boot_firmware: efi
secure_boot: true
networks:
- connected: yes
device_type: vmxnet3
start_connected: yes
type: static
name: "{{ vm_vnet }}"
# IP for connectivity tests
vm_ip: "{{ ansible_host }}"
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'vmware'
hosts: all
become: 'yes'
tasks:
- name: No need to execute code without VMWare
ansible.builtin.debug:
msg: Nothing to do here