Hello harsch, that step is automatic zie line 14 in my example.
Create a vm and do action on it (github.com) <https://gist.github.com/daemenseth/8fe5c46957846d8aa4790ac698423c71> Op wo 13 jul. 2022 om 07:03 schreef [email protected] < [email protected]>: > Hello Daeme, > > Thats just great and what i needed. Just a small doubt, what if its a > single click deployment process and i want everything to be done without > manual intervention. Like create VM, Do patching and the install softwares. > > But here you told *"Then we add that machine to the inventory"* is that > step manual ? If yes how to make it automated. > > Thanks a lot, > > *Regards* > *Harsh Chawda* > > On Tuesday, July 12, 2022 at 11:49:29 PM UTC+5:30 [email protected] > wrote: > >> What I do is we create the vm. I use there a custom role for. >> Then we add that machine to the inventory. This action in in memory in a >> prestage group. >> The prestage group in the inventory has the credential and info to >> connect. >> And then we connect to that machine in the same playbook. >> >> For a example see: create vm >> <https://gist.github.com/daemenseth/8fe5c46957846d8aa4790ac698423c71> >> >> >> Op maandag 11 juli 2022 om 10:35:56 UTC+2 schreef [email protected]: >> >>> Hi Harsha, >>> I have used an input yaml file to give all the required variable values >>> for the role to work. >>> used this module community.vmware.vmware_vm_shell: extensively to >>> avoid opening fw ports. >>> As I am not connecting the VM over nw i dont need to add it in the >>> inventory. >>> All required installers are part of the Template but even if they are >>> not you can use this module community.vmware.vsphere_copy to copy >>> files without nw. >>> >>> I am doing this in vCenter so that was the difference against your use >>> case for Azure. >>> >>> On Mon, 11 Jul 2022 at 06:01, [email protected] <[email protected]> >>> wrote: >>> >>>> Hello Abhijeet, >>>> >>>> Thanks a lot for your information. Is there any way i can have a look >>>> on the roles you built or how you did it? It will be really helpful. >>>> As i am clueless on how to achieve this. I am okay till VM creation, >>>> but how to connect to the VM on the next task and do activities i am bit >>>> confused on that. >>>> >>>> Thanks, >>>> >>>> Regards >>>> Harsh >>>> >>>> On Sunday, July 10, 2022 at 7:09:28 PM UTC+5:30 [email protected] >>>> wrote: >>>> >>>>> Hi Harsh, >>>>> >>>>> I just finished something like this. >>>>> a Role with multiple tasks to install more 6 agents, make registry >>>>> changes, add HDDs and format them, add more than one NIC and assign >>>>> correct >>>>> IP and a lot more.. >>>>> >>>>> I have another role to Patch the Template working on scheduling that >>>>> Role/Playbook. >>>>> >>>>> Warm Regards, >>>>> Abhi >>>>> >>>>> On Fri, 8 Jul 2022 at 13:31, [email protected] <[email protected]> >>>>> wrote: >>>>> >>>>>> >>>>>> Hello All, >>>>>> >>>>>> I am Creating VM in vCenter using *community.vmware.vmware_guest, *after >>>>>> the VM is Created I have certain prerequisites to be fulfilled: >>>>>> >>>>>> - Do Patching >>>>>> - Do some package installation. >>>>>> - And some more >>>>>> >>>>>> How to accomplish this. I am able to create the VM then in the next >>>>>> task how to connect to VM and perform the above mentioned tasks. >>>>>> >>>>>> Just In case in Terraform there is remote-exec and local-exec >>>>>> modules, after creation of VM in azure i can directly connect to VM using >>>>>> these and do whatever i need. >>>>>> >>>>>> Can someone please provide the roadmap. >>>>>> >>>>>> Thanks in advance, >>>>>> >>>>>> *Regards* >>>>>> *Harsh* >>>>>> >>>>>> -- >>>>>> 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 view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/ansible-project/72e29365-729e-4472-9f79-5a798ada0837n%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/ansible-project/72e29365-729e-4472-9f79-5a798ada0837n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>> 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 view this discussion on the web visit >>>> https://groups.google.com/d/msgid/ansible-project/0ec3b687-98cd-4c56-8c00-faa8e6ee4284n%40googlegroups.com >>>> <https://groups.google.com/d/msgid/ansible-project/0ec3b687-98cd-4c56-8c00-faa8e6ee4284n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/QaWKNsqj11k/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/0838075d-7dcd-4261-9892-d003c45d138cn%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/0838075d-7dcd-4261-9892-d003c45d138cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADd0dYo%3Dt8Agpa9K%2BqGS13qC5TXe_hWVBuqYekEY-bKccjfKdw%40mail.gmail.com.
