Fmstrat / diy-ipmi

A DIY IPMI / IP KVM system utilizing the Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible playbook does not provision VM in vCenter

cooldex opened this issue · comments

I am having a issue with Ansible playbook, all task complete successfully the folder is created in the vCenter but not the VM.

Ansible version: ansible [core 2.13.3]
Redhat version: Red Hat Enterprise Linux release 8.7 (Ootpa)
Linux kernel: 4.18.0-425.3.1.el8.x86_64

$ ansible-playbook -i inventory create_vm.yml -v
Using /home/adm_dadams@latrobe.biz/ansible-playground/vmware/ansible.cfg as config file

PLAY [create vm] ******************************************************************************

TASK [include_vars] ***************************************************************************
ok: [localhost] => {"ansible_facts": {"vcenter_cluster": "ml-prod", "vcenter_datacenter": "ml", "vcenter_destination_folder": "test-dex", "vcenter_hostname": "ml-vc1p.latrobe.biz", "vcenter_password": "@Da31121962", "vcenter_username": "adm_dadams@latrobe.biz", "vcenter_validate_certs": false, "vm_disk_datastore": "ml_napesx2p_ds6", "vm_disk_gb": 16, "vm_disk_type": "thin", "vm_guestid": "relhat9", "vm_hw_cpu_n": 1, "vm_hw_ram_mb": 2048, "vm_hw_scsi": "paravirtual", "vm_name": "test-dex", "vm_net_name": "VMware VMXNET3", "vm_net_type": "VMXNET 3", "vm_state": "shutdownguest"}, "ansible_included_var_files": ["/home/adm_dadams@latrobe.biz/ansible-playground/vmware/vars/vars_create.yml"], "changed": false}

TASK [create folder] **************************************************************************
ok: [localhost] => {"changed": false, "result": {"msg": "Folder test-dex already exists", "path": "/ml/vm/test-dex"}}

TASK [create VM] ******************************************************************************
ok: [localhost] => {"changed": false}

PLAY RECAP ************************************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0