What other ideas do you have?
tony@ansible:~/AnsiblePlay$ cat asaShowVersion.yml
---
# Connect to ASA and run Show Version command
- connection: local
gather_facts: False
hosts: 192.168.0.1
tasks:
- asa_command:
host: 192.168.0.1
username: tony
password: Pass
commands:
- sh ver
...
tony@ansible:~/AnsiblePlay$ ansible-playbook asaShowVersion.yml -vvv
[WARNING]: Optional dependency 'cryptography' raised an exception, falling
back to 'Crypto'
No config file found; using defaults
PLAYBOOK: asaShowVersion.yml
***************************************************
1 plays in asaShowVersion.yml
PLAY [192.168.0.1]
*************************************************************
TASK [asa_command]
*************************************************************
task path: /home/tony/AnsiblePlay/asaShowVersion.yml:10
Using module file
/etc/ansible/lib/ansible/modules/extras/network/asa/asa_command.py
<192.168.0.1> ESTABLISH LOCAL CONNECTION FOR USER: tony
<192.168.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
$HOME/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419 `" && echo
ansible-tmp-1471205735.84-46987806821419="` echo
$HOME/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419 `" ) && sleep 0'
<192.168.0.1> PUT /tmp/tmptRCoU_ TO
/home/tony/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419/asa_command.py
<192.168.0.1> EXEC /bin/sh -c 'chmod u+x
/home/tony/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419/
/home/tony/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419/asa_command.py
&& sleep 0'
<192.168.0.1> EXEC /bin/sh -c '/usr/bin/python
/home/tony/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419/asa_command.py;
rm -rf "/home/tony/.ansible/tmp/ansible-tmp-1471205735.84-46987806821419/"
> /dev/null 2>&1 && sleep 0'
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_h1rjZy/ansible_module_asa_command.py", line 172, in
<module>
main()
File "/tmp/ansible_h1rjZy/ansible_module_asa_command.py", line 147, in
main
response = module.execute(commands)
File
"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/asa.py", line
160, in execute
File
"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/asa.py", line
141, in connect
File
"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/asa.py", line
106, in send
File
"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/shell.py",
line 158, in send
File
"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/shell.py",
line 144, in receive
File
"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/shell.py",
line 193, in read
ansible.module_utils.shell.ShellError: matched error in response: no
terminal pager
^
ERROR: % Invalid input detected at '^' marker.
fatal: [192.168.0.1]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_name": "asa_command"
},
"module_stderr": "Traceback (most recent call last):\n File
\"/tmp/ansible_h1rjZy/ansible_module_asa_command.py\", line 172, in
<module>\n main()\n File
\"/tmp/ansible_h1rjZy/ansible_module_asa_command.py\", line 147, in main\n
response = module.execute(commands)\n File
\"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/asa.py\",
line 160, in execute\n File
\"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/asa.py\",
line 141, in connect\n File
\"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/asa.py\",
line 106, in send\n File
\"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/shell.py\",
line 158, in send\n File
\"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/shell.py\",
line 144, in receive\n File
\"/tmp/ansible_h1rjZy/ansible_modlib.zip/ansible/module_utils/shell.py\",
line 193, in read\nansible.module_utils.shell.ShellError: matched error in
response: no terminal pager\r\n ^\r\nERROR: % Invalid input
detected at '^' marker.\r\n\n",
"module_stdout": "",
"msg": "MODULE FAILURE",
"parsed": false
}
On Fri, Aug 12, 2016 at 1:55 AM, jean-christophe manciot <
[email protected]> wrote:
> My environment is the following:
> - ubuntu 16.04 4.4.0-34
> - ansible 2.1.1.0 *stable* from official PPA (not from sources)
> - latest commit of extra modules pointed by "library"
>
> On Fri, Aug 12, 2016 at 1:26 AM, Peter Sprygada <[email protected]>
> wrote:
>
>> Thats really strange... I just rebuilt an Ansible env using the latest
>> from source and everything works fine.
>>
>> https://gist.github.com/privateip/88b68576d7c0dd8d8e566ce3ec75e4a8
>>
>> Will try to look at exactly which commit the asa_* modules showed up in
>> the submodule a bit later but it definitely is working with the latest.
>>
>>
>>
>> On Thu, Aug 11, 2016 at 2:01 PM, jean-christophe manciot <
>> [email protected]> wrote:
>>
>>>
>>> @Tony Reveal
>>> @ Peter Sprygada
>>> Tony is right, I've just tried the asa_command and experienced the same
>>> issue:
>>>
>>> TASK [asa_pull_config : Fetching config from the remote node]
>>> ******************
>>> fatal: [172.21.100.252]: FAILED! => {"failed": true, "msg": "Could not
>>> find imported module support code for asa_command. Looked for either * or
>>> asa"}
>>>
>>> despite having the "library" variable from /etc/ansible/ansible.cfg
>>> pointing at the right folder containing the cloned
>>> https://github.com/ansible/ansible-modules-extras.
>>> The issue is the same whatever the asa_* call is: acl, config, template
>>> or command.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/ansible-project/7e7d5823-8087-4789-8771-0b85381f9c74%40g
>>> ooglegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/7e7d5823-8087-4789-8771-0b85381f9c74%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/ansible-project/QWMQJCUavV0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/ansible-project/CAEkdrMg02s42KAw4DZw0LdhiVMb%3DjByc49g0B
>> yX%2Bdy4YyerWwg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAEkdrMg02s42KAw4DZw0LdhiVMb%3DjByc49g0ByX%2Bdy4YyerWwg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jean-Christophe
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/QWMQJCUavV0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CAKcFC3Zqvw5tGYhgeYsY0xb9kEojZ
> y8FN0oCJ0hWENGWXeOW2A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKcFC3Zqvw5tGYhgeYsY0xb9kEojZy8FN0oCJ0hWENGWXeOW2A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAM8dj%3D2J%2BMbyajHPxuqwfrX-MwEwrhk0Xa80ek4MdSnt00zKoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.