Using examples from the documentation I can create a vswitch on our esxi host (v7)
But when I try to add settings like Teaming or security the playbook fails stating the parameter is unsuported.
ansible [core 2.12.10]
python version = 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
Running on Ubuntu 20.04.06
Are you seeing both the old community.vmware and the new community.vmware in the command results of ansible-galaxy collection list | grep community.vmware?
Thanks, so if you truly have core 2.12.10 installed, you should also be able to use ansible-galaxy collection list, so it sounds like you have something old left on your system.
Before correcting collection problems, check the version of Ansible you are running and try to fix the installation.
$ ansible --version
$ ansible-galaxy --version
$ ansible-config dump --only-changed -t all # remove "-t all" if you got error
Ubuntu 20.04 is still maintained since it is LTS, but Ansible 2.9.6 is quite old, it is already in EOL.
If it is possible, I recommend you to the latest stable releases; Python 3.12 and Ansible 9.x (includes ansible-core 2.16).