'Try to create a VM with AWX and ESXI standalone on Raspberry

I'm a beginner with AWX and I try to deploy a classic virtual machine debian with an ansible playbook to my ESXI standalone on my Raspberry 4.

I'am able to install a software with a playbook on my first VM on my ESXI but I have some problem to create one with a playbook. Currently I try to use this playbook :

---
- hosts: all
  connection: local
  tasks:
    - vsphere_guest:
        vcenter_hostname: raspberrypi.home
        username: root
        password: XXXXX
        guest: Debian_2
        state: powered_on
        vm_extra_config:
          vcpu.hotadd: yes
          mem.hotadd:  yes
          notes: This is a test VM
        vm_disk:
          disk1:
            size_gb: 5
            type: thin
            datastore: Datastore_1
        vm_nic:
          nic1:
            type: vmxnet3
            network: VM Network
            network_type: standard
        vm_hardware:
          memory_mb: 512
          num_cpus: 1
          osid: debian64Guest
        vm_cdrom:
          type: "iso"
          iso_path: "ISO_VM/debian-11.2.0-arm64-netinst.iso"
        esxi:
          datacenter: ha-datacenter
          hostname: raspberrypi.home

But I've this error from AWX :

SSH password: 
ERROR! couldn't resolve module/action 'vsphere_guest'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/runner/project/Debian.yml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

I can't see where is the problem...

Someone to show me how to do that ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source