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

playbook issue? #1

Open
fwissue opened this issue Jul 1, 2017 · 2 comments
Open

playbook issue? #1

fwissue opened this issue Jul 1, 2017 · 2 comments

Comments

@fwissue
Copy link

fwissue commented Jul 1, 2017

Hello:

I have some problem with playbook, and really appreciate your help. I have following ansbile and python version.
[root@62ed12163d78 /]# ansible --version
ansible 2.3.1.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

following playbook

  • name: test
    hosts: labfw
    connection: local
    gather_facts: no

    tasks:

    • name: Save the configuration
      cisco_asa_write_mem:
      host={{ inventory_hostname }}
      username=admin
      password=xxxxxx
      validate_certs=no

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

The error appears to have been in '/work/ASA/fwwrimem3.yaml': line 8, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:
- name: Save the configuration
^ here

The error appears to have been in '/work/ASA/fwwrimem3.yaml': line 8, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:
- name: Save the configuration
^ here

@ogenstad
Copy link
Member

Did you get it working? This is probably due to the fact that Ansible can't find the module you are trying to use. Verify that it's in the library directory or that you point to the directory from your ansible.cfg file.

@fwissue
Copy link
Author

fwissue commented Jul 10, 2017

If I understood you correctly? Here is what I tried.
rasa location

[root@5d25909cd1e8 rasa]# ls
init.py init.pyc constants.py constants.pyc rasa.py rasa.pyc
[root@5d25909cd1e8 rasa]# pwd
/usr/lib/python2.7/site-packages/rasa

ansible-playbook -i labhost
[labfw]
10.23.45.105 ansible_python_interpreter=/usr/lib/python2.7/site-packages/rasa

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

2 participants