Re: [ansible-project] Ansible Multiple virtual machines or templates with same name found.

2020-04-29 Thread David Foley
Having issues extracting UUID
Has anyone in the group successful deployed using the path should it be

/Folder/Data center/vm/folder/template_name 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cba65736-b6f7-4018-8953-42e197fe37ac%40googlegroups.com.


Re: [ansible-project] Ansible Multiple virtual machines or templates with same name found.

2020-04-29 Thread Dick Visser
Aha. The uuid will be unique for sure though

On Wed, 29 Apr 2020 at 20:08, David Foley  wrote:

> Hi
> It would be nice to have different names for templates but
> I don't have control of the templates just working on the automation of
> different tasks within our infrastructure.
>
>
>
> On Wed 29 Apr 2020, 19:02 Dick Visser,  wrote:
>
>> Maybe I'm stating the obvious but you should make sure there are no
>> duplicate templates.
>> Or, as the docs you quoted say, use the UUID to identify it.
>>
>> On Wed, 29 Apr 2020 at 18:58, David Foley  wrote:
>>
>>>
>>> Hi All,
>>>
>>> Trying to Deploy a Virtual Machine on a Cluster within a DataCenter
>>> which appears that a Template with the Same name is on a different Cluster
>>> within the Same Datacenter:
>>>
>>> Looking at the Following from the Doc:
>>> can someone help me with the absolute path ?
>>>
>>> I tried the following
>>>
>>> template: "Corp\San Diego\QR\.Golden Tempates\WS2016-DSC-0819" which
>>> didn't appear to Work.
>>>
>>> *template*
>>> 
>>> -
>>> Template or existing virtual machine used to create new virtual machine.
>>> If this value is not set, virtual machine is created without using a
>>> template.
>>> If the virtual machine already exists, this parameter will be ignored.
>>> This parameter is case sensitive.
>>> You can also specify template or VM UUID for identifying source.
>>> version_added 2.8. Use hw_product_uuid from vmware_guest_facts as UUID
>>> value.
>>> From version 2.8 onwards, absolute path to virtual machine or template
>>> can be used.
>>>
>>>
>>> TASK [Virtual Machine customization] 
>>> ***
>>> fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": 
>>> "Multiple virtual machines or templates with same name [WS2016-DSC-0819] 
>>> found."}
>>>
>>> --
>>> 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 ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/32ad5fa6-bc48-451b-90b6-9718671225d9%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> Sent from a mobile device - please excuse the brevity, spelling and
>> punctuation.
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAL8fbwO12bcZbWAy5CvnNF%3DfgyKLZRgZ4UQeHFQtwBYSvjgb1A%40mail.gmail.com
>> 
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAJUZ6v7ZkfRSTO9kR-gZvyRDyZuNcnyKu38%2BeFxhUofkPTeUyw%40mail.gmail.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPxEoO9MmU_ibjWqSP6fgf45Gj-RAbjoUfFY5AEPGxB6w%40mail.gmail.com.


Re: [ansible-project] Ansible Multiple virtual machines or templates with same name found.

2020-04-29 Thread David Foley
Hi
It would be nice to have different names for templates but
I don't have control of the templates just working on the automation of
different tasks within our infrastructure.



On Wed 29 Apr 2020, 19:02 Dick Visser,  wrote:

> Maybe I'm stating the obvious but you should make sure there are no
> duplicate templates.
> Or, as the docs you quoted say, use the UUID to identify it.
>
> On Wed, 29 Apr 2020 at 18:58, David Foley  wrote:
>
>>
>> Hi All,
>>
>> Trying to Deploy a Virtual Machine on a Cluster within a DataCenter which
>> appears that a Template with the Same name is on a different Cluster within
>> the Same Datacenter:
>>
>> Looking at the Following from the Doc:
>> can someone help me with the absolute path ?
>>
>> I tried the following
>>
>> template: "Corp\San Diego\QR\.Golden Tempates\WS2016-DSC-0819" which
>> didn't appear to Work.
>>
>> *template*
>> 
>> -
>> Template or existing virtual machine used to create new virtual machine.
>> If this value is not set, virtual machine is created without using a
>> template.
>> If the virtual machine already exists, this parameter will be ignored.
>> This parameter is case sensitive.
>> You can also specify template or VM UUID for identifying source.
>> version_added 2.8. Use hw_product_uuid from vmware_guest_facts as UUID
>> value.
>> From version 2.8 onwards, absolute path to virtual machine or template
>> can be used.
>>
>>
>> TASK [Virtual Machine customization] 
>> ***
>> fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": 
>> "Multiple virtual machines or templates with same name [WS2016-DSC-0819] 
>> found."}
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/32ad5fa6-bc48-451b-90b6-9718671225d9%40googlegroups.com
>> 
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwO12bcZbWAy5CvnNF%3DfgyKLZRgZ4UQeHFQtwBYSvjgb1A%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJUZ6v7ZkfRSTO9kR-gZvyRDyZuNcnyKu38%2BeFxhUofkPTeUyw%40mail.gmail.com.


Re: [ansible-project] Ansible Multiple virtual machines or templates with same name found.

2020-04-29 Thread Dick Visser
Maybe I'm stating the obvious but you should make sure there are no
duplicate templates.
Or, as the docs you quoted say, use the UUID to identify it.

On Wed, 29 Apr 2020 at 18:58, David Foley  wrote:

>
> Hi All,
>
> Trying to Deploy a Virtual Machine on a Cluster within a DataCenter which
> appears that a Template with the Same name is on a different Cluster within
> the Same Datacenter:
>
> Looking at the Following from the Doc:
> can someone help me with the absolute path ?
>
> I tried the following
>
> template: "Corp\San Diego\QR\.Golden Tempates\WS2016-DSC-0819" which
> didn't appear to Work.
>
> *template*
> 
> -
> Template or existing virtual machine used to create new virtual machine.
> If this value is not set, virtual machine is created without using a
> template.
> If the virtual machine already exists, this parameter will be ignored.
> This parameter is case sensitive.
> You can also specify template or VM UUID for identifying source.
> version_added 2.8. Use hw_product_uuid from vmware_guest_facts as UUID
> value.
> From version 2.8 onwards, absolute path to virtual machine or template can
> be used.
>
>
> TASK [Virtual Machine customization] 
> ***
> fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": 
> "Multiple virtual machines or templates with same name [WS2016-DSC-0819] 
> found."}
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/32ad5fa6-bc48-451b-90b6-9718671225d9%40googlegroups.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwO12bcZbWAy5CvnNF%3DfgyKLZRgZ4UQeHFQtwBYSvjgb1A%40mail.gmail.com.


[ansible-project] Ansible Multiple virtual machines or templates with same name found.

2020-04-29 Thread David Foley

Hi All,

Trying to Deploy a Virtual Machine on a Cluster within a DataCenter which 
appears that a Template with the Same name is on a different Cluster within 
the Same Datacenter:

Looking at the Following from the Doc:
can someone help me with the absolute path ? 

I tried the following 

template: "Corp\San Diego\QR\.Golden Tempates\WS2016-DSC-0819" which didn't 
appear to Work. 

*template*  

-
Template or existing virtual machine used to create new virtual machine.
If this value is not set, virtual machine is created without using a 
template.
If the virtual machine already exists, this parameter will be ignored.
This parameter is case sensitive.
You can also specify template or VM UUID for identifying source. 
version_added 2.8. Use hw_product_uuid from vmware_guest_facts as UUID 
value.
>From version 2.8 onwards, absolute path to virtual machine or template can 
be used.


TASK [Virtual Machine customization] ***
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Multiple 
virtual machines or templates with same name [WS2016-DSC-0819] found."}

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/32ad5fa6-bc48-451b-90b6-9718671225d9%40googlegroups.com.