Awx: Error on Playbook syntax

Created on 26 Jun 2019  ·  5Comments  ·  Source: ansible/awx

ISSUE TYPE
  • Bug Report
SUMMARY

Good morning. You have a problem on playbook syntax.

ENVIRONMENT
  • AWX version: Recent Version
ACTUAL RESULTS

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/home/xubuntu/Downloads/awx/installer/roles/local_docker/tasks/compose.yml': line 25, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: Start the containers
    ^ here
bug

Most helpful comment

This has probably already been recognized but just to make it explicit, I believe this is due to the Ansible version used here being below 2.8 (version mentioned here is 2.5.1). docker_service did not become known as docker_compose until v.2.8: https://docs.ansible.com/ansible/latest/modules/docker_compose_module.html#synopsis

All 5 comments

Ansible version: 2.5.1

I changed "docker_compose" to "docker_service" on "/home/xubuntu/Downloads/awx/installer/roles/local_docker/tasks/compose.yml"

This has probably already been recognized but just to make it explicit, I believe this is due to the Ansible version used here being below 2.8 (version mentioned here is 2.5.1). docker_service did not become known as docker_compose until v.2.8: https://docs.ansible.com/ansible/latest/modules/docker_compose_module.html#synopsis

just wanted to try out awx shortly in a dev env. Does anyone know why I should need ansible to start a docker container? Seems like someone is really loving ansible a lot ..

Was this page helpful?
0 / 5 - 0 ratings