Re: [ansible-project] Re: VMware - convert template to virtual machines

2018-05-15 Thread Sebastien Desbois
ercli and have yet to dabble with VMware modules in ansible. > > Anything would be greatly appreciated just to get me started. > > Thanks again, > > Ted > > On Fri 27 Apr 2018 at 17:33, Sebastien Desbois <sebastie...@gmail.com > > wrote: > >> Hell

[ansible-project] Re: Question on 'networks' parameter for VMWare cloud module

2018-04-27 Thread Sebastien Desbois
Hello, Can you precise which module you are using exactly? Le vendredi 20 avril 2018 16:58:29 UTC+2, EspressoBeanies a écrit : > > I have a question about the 'networks' parameter for the VMWare cloud > module. How do the options in this particular parameter get passed to the > operating

[ansible-project] Re: Ansible deploy VMware a Windows VM Template

2018-04-27 Thread Sebastien Desbois
Hello, You have two options (from my point of view) to do that - Create a Windows 2016 template with all infos already in it and deploy your VM with this template. Warning; deployment with ansible module vsphere_guest and vmware_guest will result in a "clone" meaning all your VMs deployed with

[ansible-project] Re: Seeking clarification on Ansible for VMWare module

2018-04-27 Thread Sebastien Desbois
Hello, Not sure to understand what you are asking? Only things you need to run ansible for vmware modules are : - an ansible server - a network connection between your ansible server and your esxi or vcenter That's all Ansible will talk to vCenter / ESXi using the API. Le mercredi 25 avril 2018

[ansible-project] Re: VMware - convert template to virtual machines

2018-04-27 Thread Sebastien Desbois
Hello, You can't do that with only ansible modules Here is the solution we have found to do this : - Convert template to VM : use ansible to execute a powercli script to do that. (even more easy now with Linux powercli) - Power on the VM with module vsphere_guest (yes, old module but working

[ansible-project] Re: how to convert Template to VM

2018-03-20 Thread Sebastien Desbois
Sorry, I didn't understand properly. You want to convert a template to a VM. Can't do that with vmware_guest. To do that, I'm using a Powercli script executed by Ansible. Le mardi 20 mars 2018 17:13:42 UTC+1, Sebastien Desbois a écrit : > > Hello, > > It is possible. >

[ansible-project] Re: how to convert Template to VM

2018-03-20 Thread Sebastien Desbois
Hello, It is possible. Seems that you are missing a few parameters Here is an example of task that can work: (the tasks: - name: Create VM from template vmware_guest: hostname: "{{vcenter_IP}}" username: "{{vcenter_user}}" password: "{{vcenter_pass}}"

[ansible-project] Re: ESXi cluster utilization using ansible

2018-03-16 Thread Sebastien Desbois
to get the metrics (very good idea there because the results will be more easy to use) then launch your tasks Le vendredi 16 mars 2018 10:55:37 UTC+1, Sebastien Desbois a écrit : > > Hello > > I don't think that Ansible is the tool you need for that. > All VMware modules in A

[ansible-project] Re: ESXi cluster utilization using ansible

2018-03-16 Thread Sebastien Desbois
Hello I don't think that Ansible is the tool you need for that. All VMware modules in Ansible are here to provision / modify VMs andthe infrastructure. You won't get any metrics (for CPU / RAM / disk utilization) through them. You can use Ansible to launch Powercli scripts tha Le mercredi 14

[ansible-project] Re: vsphere_guest module doesn't receve datastore value

2018-01-22 Thread Sebastien Desbois
Hello, When deploying from a template, this parameter will no be used. Your VM will be deployed in the same datastore as the template. This deployment is just a clone that will take by default all the parameters CPU / RAM / Disks of the template. For my part, since I like complicated things,

[ansible-project] Re: vmware_guest building template - dont deploy to a resource pool

2018-01-04 Thread Sebastien Desbois
Hello, What is your version of Ansible ? Starting version 2.4, vmware_guest is totally broken on the resource_pool parameter. For previous versions, the default resource pool ithat could be indicated was /Resources and it was working. (It has been introduced in 2.3) To be honest, for the

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread Sebastien Desbois
gt; El martes, 17 de octubre de 2017, 14:57:28 (UTC+2), Sebastien Desbois > escribió: >> >> Hello, >> >> For my part, I'm using the way described by JYL. >> >> - include_role: >> name: myrolewhoaddsininventory >> with_it

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread Sebastien Desbois
Hello, For my part, I'm using the way described by JYL. - include_role: name: myrolewhoaddsininventory with_items: "{{ mylist }}" the add_host task is included amonfg other things in the role. And at the end, I get the in-memory inventory properly filed. Le mardi 17 octobre 2017

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-16 Thread Sebastien Desbois
Hello, The probleme seems that Ansible do not that it needs to loop on the add_host part, since there is no parameter like {{ inventory_hostname }} to indicate it needs to loop on it. Maybe if you try to add a false variable set to the inventory_hostname, it could help it to loop ? Should

[ansible-project] Re: vmware_guest module: Customization of the guest operating system 'centos64Guest' is not supported in this configuration

2017-10-02 Thread Sebastien Desbois
Hello Limitation of your version of vCenter Centos 7 Guest customization is supported for vSphere 6 (https://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf) but your vCenter build is way too old. Current build : 5318200 Le vendredi 29 septembre 2017 13:25:16

[ansible-project] Re: Ansible: vmware_module does not work and flashes the error "Failed to find a matching datastore"

2017-10-02 Thread Sebastien Desbois
ember 28, 2017 at 8:23:22 AM UTC-7, Sebastien Desbois > wrote: >> >> Hello, >> >> when you don't specify a datastore, ansible will use an autoselect_datastore >> function to find a datastore for your VM. >> In this function, there is a check t

[ansible-project] Re: Ansible module for vRA

2017-09-29 Thread Sebastien Desbois
Well for me, vRA (vRealize Automation) and Ansible are doing the same job. vRA is here to automate the provisoning of whole platforms, from VMs deployment, network conf, to app deployment, etc... With the possibility to have a portal to propose users to do it based on blueprints. Ansible module

[ansible-project] Re: Ansible Snapshot size for Vmware Guest

2017-09-28 Thread Sebastien Desbois
Hello Until ansible version 2.4, you could only take a snapshot without quiescing and without memory dump. By default, when you take a snapshot though vSphere client, the memory dump option is activated. I guess this is why you have a time difference and a size difference. Regards, Le

[ansible-project] Re: Ansible: vmware_module does not work and flashes the error "Failed to find a matching datastore"

2017-09-28 Thread Sebastien Desbois
Hello, when you don't specify a datastore, ansible will use an autoselect_datastore function to find a datastore for your VM. In this function, there is a check to see if there is enough space in the datastores list for your new VM. If not, no datastore is return by this function and you get