-2

Actually i am using Ansible to automate the deployment process off my VMs. I am able to deploy a VM with Ansible in my ESX Environment, this VM will be depolyed from a Template.

So now i need to make sure, that the VM is powered off, when it's deployed. When i try to add the command:

state: poweredoff

in Ansible , in my Playbook, then i get an Error. So I think i need to adjust this setting maybe in the VMX File of the VMware template?

But where can i find a specific parameter?

I Hope you guy's can maybe help me!

Kadir
  • 1,664
  • 2
  • 19
  • 22

1 Answers1

0

Check your spelling, please. From the docs: state: powered_off

Konstantin Suvorov
  • 65,183
  • 9
  • 162
  • 193
  • Already did this. Still getting the error "fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "parameters are mutually exclusive: ['state' , 'from_template']"}" // Dont know why i am getting this... any idea? – Kevin-Ian Giermann Dec 12 '16 at 09:47
  • This is how `vsphere_guest` works – you can't define states when cloning. – Konstantin Suvorov Dec 12 '16 at 09:55
  • Yeah i know, thats why i'm asking if there is any possibility to adjust the stting IN the VMX file of VMware OR in the Playbook ? When i take a look into the module list, i see that there is a setting "state: poweredon" ? why can't i set it to powered_off? – Kevin-Ian Giermann Dec 12 '16 at 10:09