Hello, I have installed the community.vmware module for my playbook. I am currently using 4.0. I am trying to run an ansible script where it moves one virtual machine from one host to another host using vMotion. However, every time I run the script, I receive the error: ‘community.vmware.vmware_vmotion’ is not a valid attribute for a Play.
How is that possible when community.vmware.vmware_vmotion is listed as a module on the documentation? Listed below:
If you think your indentation is correct, please show a little bit more of your playbook. And use preformatted text so the forum doesn’t “improve” formatting
means you are trying to pass a module name (used in tasks) at play level.
In short, a playbook is composed of one or more plays, each of them having one or more tasks (also handlers, vars, …), so something like that in your case: