add host to inventory Add tower host

i want to add to inventory over awx a machine provisioned

i try with

  • name: Add tower host
    tower_host:

but seem work only in tower because when i try to use give me

“exception”: “WARNING: The below traceback may not be related to the actual failure.\n File "/tmp/ansible_tower_host_payload_azuMsH/main.py", line 70, in \n import tower_cli\n”,

other ways ??

it’d be helpful to see the rest of the exception from the module.

You can also use the api directly