[ansible-project] Re: Problems Creating VMs From Template

2020-04-09 Thread David Foley
Can you test on a Different Linux OS, like Ubuntu and a Different Network 
vSwitch 

On Thursday, April 9, 2020 at 4:37:26 PM UTC+1, AJ wrote:
>
> Nope it's unreliable. Ran it a few more times, it completely worked a 
> couple times, then the 3rd time it worked on the first VM and failed on the 
> 2nd VM because the network was unavailable.
> So with open vmtools it doesn't even change the guest network settings.
> With native vmtools it changes all the guest network settings, but roughly 
> 75% of the time the IP is unreachable unless I "jump start" it by consoling 
> into the guest and initiate some kind of traffic from the VM.
>

-- 
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/e5fcb99d-b388-47d1-9011-99e1dd0a96d2%40googlegroups.com.


[ansible-project] Re: Problems Creating VMs From Template

2020-04-09 Thread AJ
Nope it's unreliable. Ran it a few more times, it completely worked a 
couple times, then the 3rd time it worked on the first VM and failed on the 
2nd VM because the network was unavailable.
So with open vmtools it doesn't even change the guest network settings.
With native vmtools it changes all the guest network settings, but roughly 
75% of the time the IP is unreachable unless I "jump start" it by consoling 
into the guest and initiate some kind of traffic from the VM.

-- 
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/415bb44c-f698-49dc-915e-fd34911ab32d%40googlegroups.com.


[ansible-project] Re: Problems Creating VMs From Template

2020-04-09 Thread AJ
Thanks for the replies, I appreciate it. I haven't tried it but I don't 
think autologon applies since I'm deploying Linux VMs. In the Ansible 
documentation autologon is under the section "Parameters related to Windows 
customization:"
For a while I was using delegate_to: localhost but I removed it because 
after reading the documentation it seemed to me that delegate_to is 
basically an override for the hosts: parameter and since I'm already 
running the VM tasks with hosts: localhost I didn't think I needed it 
(maybe I misunderstood the documentation?).
At any rate, I still had the problem when I was using delegate_to: 
localhost.

The REALLY weird thing is, it's working now. I've ran this playbook dozens 
of times against this template and had the problem. I created a VM from the 
template, installed tcpdump, and converted it to a new template. Pointed 
the playbook to it and it worked.
Thinking maybe tcpdump somehow modified the network stack I pointed my 
playbook back to the original CentOS 8 template (without tcpdump) and it's 
still working.

Now I'm confused. We'll see how reliable it is.

On Thursday, April 9, 2020 at 8:32:02 AM UTC-5, David Foley wrote:
>
> If i can remember Correctly: I had the Same issue with Static IP not taken 
> affect, as my AutoLogin wasn't working, Once i fixed the Password on the 
> template, Static IP Address were taken effect.
>
>

-- 
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/d4aec32b-c374-42f2-9c06-05c21bf6b57b%40googlegroups.com.


[ansible-project] Re: Problems Creating VMs From Template

2020-04-09 Thread David Foley
If i can remember Correctly: I had the Same issue with Static IP not taken 
affect, as my AutoLogin wasn't working, Once i fixed the Password on the 
template, Static IP Address were taken effect.

-- 
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/d3d507e5-dfa6-4129-a63e-6f605daf83c2%40googlegroups.com.


[ansible-project] Re: Problems Creating VMs From Template

2020-04-09 Thread David Foley

>
> I'm using Ansible to Deploy Windows machines: having no issues, out side 
> of your Code: Outside of your code I'm not using both of the following:  
>

>-  start_connected: True
>-wait_for_ip_address: yes 
>
> Not sure if Static IP Address settings need to have login set to use to 
configure the Static IP 

customization:
hostname: "{{ VM_Name }}"
dns_servers:
- 
dns_suffix:
- 
domain: "{{ domain }}"
autologon: yes
password: "{{ local_pass }}"
runonce:
- 

But i also see you don't have   delegate_to: localhost

-- 
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/5cef026b-f747-416a-b6fe-3a9d4d6c8170%40googlegroups.com.