Hi,
Iam new to Ansible and I am trying to create a playbook to change the state of a bulk of Virtual Machines in Vmware. But I don’t now how to start ! I have read a lot of examples but I didn’t found any example to manipulate a bulk of virtual machines.
here is the playbook I am trying to build:
You need a loop, you can do that with with_items: in Ansible
hi,
I found the solution, but it was not simple to find information and the error messages didn’t help to find what I did or was wrong. but here is how I fixed it.
first I need to run it on RHEL7 ( on RHEL6 I had a lot of issues ) and need to install the latest version of python-pyvmomi.noarch and then I needed to sort out which parameters are mandatory.