I am in the process of developing a playbook to create VMs in VMware
vCenter Server wherein I need to be able to name the VMs with incremental
number suffixes - VM(x) becomes VM1, VM2. Since the number of VMs would be
fixed, I intend to specify the number in the playbook itself.
I'm assuming I need to specify the highlighted variable vmname (below)
prior to the vsphere_guest module.
---
- name: Create VMs on VMware vCenter Server
hosts: localhost
tasks:
- vsphere_guest:
vcenter_hostname: "nameofhost"
guest: "{{ vmname }}"
from_template: yes
template_src: "templatename"
validate_certs: no
esxi:
datacenter: dcname
hostname: hname
I would also like to know which kind of editor you people use to write
Ansible Playbooks.
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d8b7f41c-08da-4191-bdf1-9fbdd33bb822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.