# Simple install - Syntax Error with image\_build/tasks/main.yml

**URL:** <https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 15, 2017, 10:45pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499 "2017-09-15T22:45:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric4](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Eric4](https://forum.ansible.com/u/Eric4)\
**Post date:** [September 15, 2017, 10:45pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/1 "2017-09-15T22:45:01Z")

</div>

When installing AWX from the documentation, it stops at an error with image\_build/tasks/main.yml

Following the install guide found here: [https://github.com/ansible/awx/blob/devel/INSTALL.md](https://github.com/ansible/awx/blob/devel/INSTALL.md)

Installed the requirements:

`apt update apt install -y ansible docker make git python-setuptools python-pip python3-pip pip install --upgrade pip pip install --upgrade docker pip3 install --upgrade pip pip3 install --upgrade docker git clone https://github.com/ansible/awx.git`

Ran the ansible playbook

`  
root@ansible-world0:~/awx/installer# ansible-playbook -i inventory install.yml  
ERROR! no action detected in task

The error appears to have been in ‘/root/awx/installer/image\_build/tasks/main.yml’: line 63, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Build AWX distribution  
^ here  
`

Related: [https://github.com/ansible/awx/issues/179](https://github.com/ansible/awx/issues/179)

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [September 15, 2017, 10:51pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/2 "2017-09-15T22:51:55Z")

</div>

Looks like the docker\_container module isn't found. What version of Ansible are you using?

---

<div class="post-metadata">

**Author:** ![Eric4](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Eric4](https://forum.ansible.com/u/Eric4)\
**Post date:** [September 15, 2017, 10:53pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/3 "2017-09-15T22:53:35Z")

</div>

On Ubuntu 16.04

`

root@ansible-world0:~/awx/installer# ansible --version  
ansible 2.0.0.2

`

---

<div class="post-metadata">

**Author:** ![Eric4](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Eric4](https://forum.ansible.com/u/Eric4)\
**Post date:** [September 15, 2017, 10:56pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/4 "2017-09-15T22:56:40Z")

</div>

Since you mentioned which version of Ansible I was using, I decided to take a look, and looks like I needed to use their ppa’s, and it’s not updated on Ubuntu’s default repositories

`

```auto
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

```

`

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [September 15, 2017, 10:56pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/5 "2017-09-15T22:56:54Z")

</div>

Yep that's the problem. docker\_container was added in Ansible 2.1 [http://docs.ansible.com/ansible/latest/docker\_container\_module.html](http://docs.ansible.com/ansible/latest/docker_container_module.html)

Try upgrading to the latest version of Ansible.

---

<div class="post-metadata">

**Author:** ![Eric4](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Eric4](https://forum.ansible.com/u/Eric4)\
**Post date:** [September 15, 2017, 11:04pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/6 "2017-09-15T23:04:18Z")

</div>

Upgraded to ansible 2.3.2.0 with the ppa, and got a new error:

`

ansible 2.3.2.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = Default w/o overrides  
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

`

`

TASK [image\_build : Build sdist builder image] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost → localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Error connecting: Error while fetching server API version: (‘Connection aborted.’, error(2, ‘No such file or directory’))”}  
to retry, use: --limit @/root/awx/installer/install.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=8 changed=2 unreachable=0 failed=1

`

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 16, 2017, 12:47am UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/7 "2017-09-16T00:47:43Z")

</div>

That error is happening because the docker service isn’t running on your local system.

---

<div class="post-metadata">

**Author:** ![Eric4](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Eric4](https://forum.ansible.com/u/Eric4)\
**Post date:** [September 16, 2017, 6:16pm UTC](https://forum.ansible.com/t/simple-install-syntax-error-with-image-build-tasks-main-yml/25499/8 "2017-09-16T18:16:35Z")

</div>

Yeah it turns out docker can’t run inside LXC ☹

So I’ll have to use KVM instead, until AWX goes non-docker. But that won’t be for a long time according to them, because of the support nightmare it would be for them
