I agree with Dick. Is this something you will do over and over so taking the time makes sense? Or is this a once-and-done task?
Also look at the tools VMware offers. Ansible isn't always the right solution. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On May 10, 2023, at 11:38 AM, Dick Visser <[email protected]> wrote: If you just want the quickest option then go for a playbook. If you can spend some time on this then you could create a role that is meant for patching ESX hosts, and that includes helper tasks to handle the maintenance mode and the reboot. Endless possibilities to do this, from quick and dirty to nicely parametrised On Wed, 10 May 2023 at 17:29, Tony Wong <[email protected]<mailto:[email protected]>> wrote: I got a few tasks i need to do on esxi host 1. put in maintenace mode 2. copy vib from my laptop to the the host shared datastore 3. install the patch esxcli softare vib install -d /path/xxx.zip 4. reboot the host 5. take it out of maintenance mode do i create roles for these or single playbook? -- 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c8b949a8-2024-43eb-9d46-61eead48e170n%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/c8b949a8-2024-43eb-9d46-61eead48e170n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- Sent from Gmail Mobile -- 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLaiFAKhAOWbcrbZXgZkfg66pFNMkan8Z8gfL7oXWQBY9Q%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAF8BbLaiFAKhAOWbcrbZXgZkfg66pFNMkan8Z8gfL7oXWQBY9Q%40mail.gmail.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/E998E348-A6FB-49C1-B388-696AD8B3EABC%40nist.gov.
