Thanks Luke, but this requires networking again which i cant ensure due to topology and some wired policies.
Am Freitag, 21. Dezember 2018 14:07:32 UTC+1 schrieb Lucas Jackson: > > Hey Michael, > > Might be worth looking at the wait_for_connection module, I use this with > my vmware deployments and it seems to work pretty good. > > > https://docs.ansible.com/ansible/latest/modules/wait_for_connection_module.html > > > Luke > > > > Sent from my Samsung Galaxy smartphone. > > -------- Original message -------- > From: Michael W <[email protected] <javascript:>> > Date: 2018-12-21 2:07 AM (GMT-05:00) > To: Ansible Project <[email protected] <javascript:>> > Subject: [ansible-project] Prefered way to launch a vm on vmware > > Hello, > I'm new to ansible and tried to launch a Linux VM on my first Ansible > tests. > This means cloning a vm from a template, booting and running some > first-boot commands in order to hand over controll to Puppet inside the vm. > > So i ended up with: > > 1. vmware_guest to clone. > 2. vmware_tools_wait to ensure OS is up and ready > 3. vmware_vm_shell for to launch Puppet. This is the only way - > Network access not an option by policy. > > Works out of the box basicallly, but there seems to be a timing problem in > step 2. > Since the wm is rebooted in step 1 vmware_tools_wait fails in the first > place with someting like "unable to contact vm". > > Ist my aproach correct and is there a way to get arround the timing > problem other than a stupid "sleep" between ? Didnt find a retry option > sadly. > > Thanks for reading > > -- > 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] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/aa988c28-0786-474e-b6b8-6d7b0d4546f6%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/aa988c28-0786-474e-b6b8-6d7b0d4546f6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/a9ac5380-f811-4dff-8036-2901e08633bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
