AWX unable to run Playbook

**HI,
I am relatively new to Ansible / AWX and I have a new install of AWX on minikube. i was able to connect to my git repo and synced successfully, I was also able to add host credentials and add a host. however, when I try to run a simple playbook to add a docker container, the template fails with the error below.
i am able to successfully run the playbook directly on the host by calling sudo ansible-playbook -c local -i localhost, speed.yml . but when I run using AWX ,It fails

AWX 24.6.1
Operator 2.19.1
Host Ubuntu 24.10
Host ansible [core 2.16.3]
Host Python 3.12.7
error :

SSH password: 
BECOME password[defaults to SSH password]: 
ERROR! couldn't resolve module/action 'docker_container'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/runner/project/speedtest.yml': line 7, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
  tasks:
  - name: Create Docker Container
    ^ here

In order to troubleshoot properly we will also need to at least see the full task from the playbook that you are erroring on.

But based on what you have I can make assumptions. Could be as simple as 1 of 2 things, either you need to specify the FQCN, ie: community.docker.docker_container:

and or you are missing the community docker collection Ansible Galaxy - community.docker

You are missing community.docker.docker_container collection in AWX.

The easiest way to install collections in AWX is to specify them in a collections/requirements.yml file at the root of your playbook project. See here for more information.

worked like a charm. Thanks for your help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.