Hi folks
When i use below on a Ubuntu 20.04 ansible control node , vm is created but
the OS name shows "none"
Same playbook i am running on a CentOS7 ansible control node the then the
vm name is not none but correct one
Any suggestions on this Please ?
cat vm-create-paramater.yml
---
- hosts: localhost
gather_facts: false
connection: local
vars_files:
- /etc/ansible/playbooks/vm-provision/vars/var.yml
tasks:
- name: create vm using template
vmware_guest:
hostname: "{{ vcenter_name }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: no
name: "{{ vm_name }}"
folder: "{{ vcenter_folder }}"
resource_pool: "{{ vcenter_rp }}"
datacenter: "{{ vcenter_dc }}"
cluster: "{{ vcenter_cluster }}"
state: poweredon
template: "{{ vcenter_template }}"
disk:
- size_gb: "{{ vm_disk_size }}"
type: thin
datastore: "{{ vcenter_datastore }}"
hardware:
memory_mb: "{{ vm_mem_mb_size }}"
num_cpus: "{{ vm_cpu_size }}"
num_cpu_cores_per_socket: "{{ vm_core_size }}"
scsi: paravirtual
networks:
- name: "{{ vcenter_network }}"
ip: "{{ vm_ip }}"
netmask: 255.255.255.0
gateway: "{{ vm_gateway }}"
start_connected: true
customization:
domain: xx
Thanks
Kiran
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7d1f1dd3-accc-4dda-9548-21fe97d529d5n%40googlegroups.com.