# AWX unable to run Playbook

**URL:** <https://forum.ansible.com/t/awx-unable-to-run-playbook/10487>\
**Category:** Get Help\
**Tags:** playbook, docker, ubuntu, awx\
**Created:** [October 24, 2024, 12:55pm UTC](https://forum.ansible.com/t/awx-unable-to-run-playbook/10487 "2024-10-24T12:55:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![echeren](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/echeren/32/5245_2.png) [@echeren](https://forum.ansible.com/u/echeren)\
**Post date:** [October 24, 2024, 12:55pm UTC](https://forum.ansible.com/t/awx-unable-to-run-playbook/10487/1 "2024-10-24T12:55:12Z")

</div>

\*\*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 :

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Borg](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@Borg](https://forum.ansible.com/u/Borg)\
**Post date:** [October 24, 2024, 3:19pm UTC](https://forum.ansible.com/t/awx-unable-to-run-playbook/10487/2 "2024-10-24T15:19:27Z")

</div>

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](https://galaxy.ansible.com/ui/repo/published/community/docker/?extIdCarryOver=true&sc_cid=701f2000001OH7YAAW)

---

<div class="post-metadata">

**Author:** ![jiholland](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jiholland/32/11273_2.png) [@jiholland](https://forum.ansible.com/u/jiholland)\
**Post date:** [October 24, 2024, 5:55pm UTC](https://forum.ansible.com/t/awx-unable-to-run-playbook/10487/3 "2024-10-24T17:55:19Z")

</div>

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](https://github.com/ansible/awx/blob/devel/docs/collections.md) for more information.

---

<div class="post-metadata">

**Author:** ![echeren](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/echeren/32/5245_2.png) [@echeren](https://forum.ansible.com/u/echeren)\
**Post date:** [October 24, 2024, 8:13pm UTC](https://forum.ansible.com/t/awx-unable-to-run-playbook/10487/4 "2024-10-24T20:13:11Z")

</div>

> [@jiholland](#):
>
> community.docker

worked like a charm. Thanks for your help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [November 23, 2024, 8:14pm UTC](https://forum.ansible.com/t/awx-unable-to-run-playbook/10487/5 "2024-11-23T20:14:11Z")

</div>

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