Hello everyone,
I am trying to setup Ansible Tower to build machines on my VMWare 6.7 servers. I am using the vmware_guest module, It builds the machines and all the other functions are working, but the build ignores the customization settings I have. If I have the customization in the build, or run it alone on an already built machine, it gets ignored, the VMWare servers have the update vmtools. Any help would be apprechiated.
Code for in the build. This ends with a successful change, but ignores the customization stuff.:
hostname: “{{ vcenter_server }}”
username: “{{ lookup(‘env’, ‘VMWARE_USER’) }}”
password: “{{ lookup(‘env’, ‘VMWARE_PASSWORD’) }}”
validate_certs: no
name: “{{ WKS_name }}”
template: “{{ template }}”
datacenter: “{{ CLdatacenter_name }}”
folder: “/Automation”
state: poweredon
cluster: “{{ cluster_name }}”
datastore: “{{ datastore }}”
networks:
- name: “{{ network_name }}”
domain: “US”
start_connected: yes
customization:
hostname: “{{ WKS_name }}”
domain: “US”
timezone: “020”
wait_for_ip_address: yes
Code for when I try it alone. This just says change false, nothing to change, even though there is.
vmware_guest:
hostname: "{{ vcenter_server }}"
username: "{{ lookup('env', 'VMWARE_USER') }}"
password: "{{ lookup('env', 'VMWARE_PASSWORD') }}"
validate_certs: no
name: "{{ WKS_name }}"
customization:
hostname: "{{ WKS_name }}"
existing_vm: yes
domain: "US"
timezone: "020"
wait_for_customization: yes