I have tried figuring this out for a few hours now and can’t get it working…
Does anyone know how to properly format this so the code isn’t so wide?
- hosts: 127.0.0.1
connection: local
gather_facts: no
roles:
- { role: vsphere-guest, vm_name: ‘{{server1_hostname}}’, ip_addr: ‘{{server1_ip.stdout}}’, ip_mask: ‘{{ip_mask}}’, ip_gateway: ‘{{ip_gateway}}’, fqdn: ‘{{server1_hostname}}’, vm_memsize: ‘{{vm_memsize}}’, vm_numcpus: ‘{{vm_numcpus}}’, vcenter_username: ‘{{ vcenter[vsphere_environment].username }}’, vcenter_password: ‘{{ vcenter[vsphere_environment].password }}’, tags: [ ‘create_vms’, ‘create_vm1’ ] }
Thanks!