Hi.
i'm trying to run some show command with raw module on my Sonus device ( SBC
5110) but i get error in different condition:
first i tried to run command with smart or default transport
Here is playbook:
> ---
> - hosts: all
> # gather_facts: false
> # connection: local
> tasks:
> - name: show
> raw: show table system serverStatus
i get no error and stuck on executing command:
Using /etc/ansible/ansible.cfg as config file
> PLAYBOOK: test.yml
> **********************************************************************************************************************************************************************
> 1 plays in test.yml
> PLAY [all]
> ******************************************************************************************************************************************************************************
> TASK [Gathering Facts]
> ******************************************************************************************************************************************************************
> Using module file
> /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
> <xxx.xxx.xxx.xxx> ESTABLISH SSH CONNECTION FOR USER: xxxxx
> <xxx.xxx.xxx.xxx> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o User=xxxx -o ConnectTimeout=10 -o
> ControlPath=/home/admin/.ansible/cp/459e41a465 xxx.xxx.xxx.xxx '/bin/sh -c
> '"'"'echo ~ && sleep 0'"'"''
then i tried with disabling gather_facts , same playbook above but only
removed # in gather_facts line and same as before , stuck and no error
output is:
>
> Using /etc/ansible/ansible.cfg as config file
> PLAYBOOK: test.yml
> **********************************************************************************************************************************************************************
> 1 plays in test.yml
> PLAY [all]
> ******************************************************************************************************************************************************************************
> META: ran handlers
> TASK [show]
> *****************************************************************************************************************************************************************************
> task path: /home/admin/test/test.yml:7
> <xxx.xxx.xxx.xxx> ESTABLISH SSH CONNECTION FOR USER: xxxx
> <xxx.xxx.xxx.xxx> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o User=xxxx -o ConnectTimeout=10 -o
> ControlPath=/home/admin/.ansible/cp/459e41a465 -tt xxx.xxx.xxx.xxx 'show
> table system serverStatus'
then i tried to change connection type to local, same playbook but only
removed # from connection line , but this time i get this error
output is:
>
> Using /etc/ansible/ansible.cfg as config file
> PLAYBOOK: test.yml
> **********************************************************************************************************************************************************************
> 1 plays in test.yml
> PLAY [all]
> ******************************************************************************************************************************************************************************
> META: ran handlers
> TASK [show]
> *****************************************************************************************************************************************************************************
> task path: /home/admin/test/test.yml:7
> <xxx.xxx.xxx.xxx> ESTABLISH LOCAL CONNECTION FOR USER: xxxx
> <xxx.xxx.xxx.xxx> EXEC show table system serverStatus
> fatal: [xxx.xxx.xxx.xxx]: FAILED! => {
> "changed": true,
> "failed": true,
> "rc": 127,
> "stderr": "/bin/sh: 1: show: not found\n",
> "stdout": "",
> "stdout_lines": []
> }
> to retry, use: --limit @/home/admin/test/test.retry
> PLAY RECAP
> ******************************************************************************************************************************************************************************
> xxx.xxx.xxx.xxx : ok=0 changed=0 unreachable=0
> failed=1
i tried different transport, still getting error, also i tried CLI
transport but getting error this module does not exist.
any suggestion?
if there is any information i need to get from device manufacture, i can
ask them directly.
Note: ssh login is in inventory file and i'm not using Ansible vault.
Thanks
--
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/16368b54-d6e7-47ad-b3cd-0786a48faa6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.