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
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
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
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
This is still very little information to debug. Could you please provide console.log, contents of setup.sh and other information ?
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
platform python for this host. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
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