I am wanting to utilize ansible to update esxi host via the lifecycle manager. Would ansible be the recommended tool for a task like this?
I don’t know about any module that can do this. Neither in community.vmware
, nor in vmware.vmware
, nor vmware.vmware_rest
. There might be such a module, though, and I’ve overlooked it.
Anyway, I’m not too sure if it would be a good idea to do this with ansible. Maybe I’m somewhat old-school, but I prefer to do upgrades manually where I have more control over the process. Well, this is just my opinion.
As a first step, I think it would be more important to have a module defining the vCenter Lifecycle Manager (or whatever it’s called now… they’re changing names so often that nobody is able to keep track) image on a cluster. But I didn’t find a good way to implement one, yet.
BTW do you know PowerCLI? Maybe this could help you to automate upgrades. I might be wrong in saying that ansible is the wrong tool for the job, but I’m pretty sure that it’s simply not possible with ansible ATM. So maybe PowerCLI might help you to automate this.
I have noticed the same thing. I initially started with powerCLI. I just wanted to make sure that I wasn’t overlooking or not giving ansible a chance.