Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR! no action detected in task. #33

Open
monofonik opened this issue May 8, 2017 · 3 comments
Open

ERROR! no action detected in task. #33

monofonik opened this issue May 8, 2017 · 3 comments

Comments

@monofonik
Copy link

I'm unable to use this module when installed via ansible-galaxy. The error suggests that my playbook doesn't recognise elasticbeanstalk_app as a valid action.

Max OS X 10.12.5, Python 2.7.10, Ansible 2.1.10.

Steps to reproduce:

Create a test project:

mkdir /tmp/bs && cd /tmp/bs

Create ansible.cfg in project folder with contents:

[defaults]
roles_path = ./plays/roles

Install elastic_beanstalk module:

$ ansible-galaxy install hsingh.elastic_beanstalk
- downloading role 'elastic_beanstalk', owned by hsingh
- downloading role from https://github.com/hsingh/ansible-elastic-beanstalk/archive/v2.0.1.tar.gz
- extracting hsingh.elastic_beanstalk to /private/tmp/bs/plays/roles/hsingh.elastic_beanstalk
- hsingh.elastic_beanstalk was installed successfully

Create playbook with contents from project README, attempt to run playbook:

$ ansible-playbook test.yml 
 [WARNING]: Host file not found: /etc/ansible/hosts

 [WARNING]: provided hosts list is empty, only localhost is available

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

The error appears to have been in '/private/tmp/bs/test.yml': line 8, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  - name: Create Elastic Beanstalk application
    ^ here


The error appears to have been in '/private/tmp/bs/test.yml': line 8, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  - name: Create Elastic Beanstalk application
    ^ here

Any ideas?

@sidewinder12s
Copy link
Contributor

I think your ansible.cfg is breaking it. The repo is setup to be cloned by galaxy and then run with ansible-playbook as is (the repo is setup for ansible to auto-discover the modules). If your setting an explicit role path it probably can't find the modules anymore.

@nijojames92
Copy link

Hi i'm having the same issue? anybody have a solution for it

@torte
Copy link

torte commented Nov 23, 2017

Having the same issue without setting up a custom ansible.cfg. All the actions as in the examples (elasticbeanstalk_app, elasticbeanstalk_env and elasticbeanstalk_version) are not detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants