fatal: [xhddcslab02]: FAILED! => {"changed": false, "module_stderr": "", "module_stdout": "\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

379 views
Skip to first unread message

VADREVU RAMADEVI

unread,
Nov 25, 2019, 5:17:57 AM11/25/19
to Ansible Project
While running a shell script which internallly calls python script,giving the module isssue.

Python version which installed on the host is Python 2.7.5

can someone help me ho eto get out of this module error

Dick Visser

unread,
Nov 25, 2019, 5:38:35 AM11/25/19
to ansible...@googlegroups.com
That is almost zero information.
Could you please tell clearly:

- What you are trying to achieve.
- How you are doing this.
- What problems you encounter.
- Which command did you run, and what output did you get from that
(copied as text, not as images/attachments/screenshots)
- What the relevant tasks/playbooks/code/variables look like
> --
> 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 ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1d25c6a4-37f7-4c42-b5e3-95f4a2f868a1%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

VADREVU RAMADEVI

unread,
Nov 25, 2019, 7:24:45 AM11/25/19
to Ansible Project
- hosts: "{{ targets }}"
  gather_facts: yes
  tasks:
     - name: "### Run lspci: {{ item }}"
       shell: "bash /opt/xilinx/xrt/setup.sh; {{ playbook_dir }}/alveo_tests.sh -p -l {{ output_dir }}/lspci.log"
       become: yes
       register: lspci
   - debug: var=lspci.stdout_lines

This is my playbook 
setup.sh calls  a python script , while running thius script iam finding module error.

My  python version 2.7.5


On Monday, November 25, 2019 at 4:08:35 PM UTC+5:30, Dick Visser wrote:
That is almost zero information.
Could you please tell clearly:

- What you are trying to achieve.
- How you are doing this.
- What problems you encounter.
- Which command did you run, and what output did you get from that
(copied as text, not as images/attachments/screenshots)
- What the relevant tasks/playbooks/code/variables look like

On Mon, 25 Nov 2019 at 11:18, VADREVU RAMADEVI
<vadrevura...@gmail.com> wrote:
>
> While running a shell script which internallly calls python script,giving the module isssue.
>
> Python version which installed on the host is Python 2.7.5
>
> can someone help me ho eto get out of this module error
>
> --
> 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 ansible...@googlegroups.com.

Abhijeet Kasurde

unread,
Nov 25, 2019, 7:27:29 AM11/25/19
to ansible...@googlegroups.com
This is still very little information to debug. Could you please provide console.log, contents of setup.sh and other information ?

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/46d8291b-47f9-4515-90e5-34d3516d6abd%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde

Richard

unread,
Dec 3, 2019, 9:02:50 PM12/3/19
to Ansible Project

I need help fixing --"[Errno -3] Temporary failure in name resolution"}


ansible@denchpw26:~$ ansible-playbook -i ICSR, -u ansible -k -e ansible_network_os=ios test_playbook.yml
SSH password:

PLAY [Pre and Post Cisco show Command] *********************************************************************************

TASK [Get a timestamp] *************************************************************************************************
[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host ICSR should use /usr/bin/python3, but is using /usr/bin/python
 for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered
 for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
changed: [ICSR]

TASK [Show commands] ***************************************************************************************************
fatal: [ICSR]: FAILED! => {"changed": false, "msg": "[Errno -3] Temporary failure in name resolution"}

PLAY RECAP *************************************************************************************************************
ICSR                       : ok=1    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Reply all
Reply to author
Forward
0 new messages