Hello,
I have a offline environment and I am trying to run a playbook that will ping all my cisco IOS switches. When I run my playbook:
I thought I could install this maramiko,
python -m pip install paramiko-3.3.1-py3-none-any.whl
Processing ./paramiko-3.3.1-py3-none-any.whl
any idea?
My ansible play is this:
I have a offline environment and I am trying to run a playbook that will ping all my cisco IOS switches. When I run my playbook:
Code:
TASK [Check Boot path] *************************************************************************************
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
fatal: [r1]: FAILED! => {"changed": false, "msg": "paramiko is not installed: No module named 'paramiko'"}
I thought I could install this maramiko,
python -m pip install paramiko-3.3.1-py3-none-any.whl
Processing ./paramiko-3.3.1-py3-none-any.whl
Code:
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f58e5e3c910>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pynacl/
ERROR: Could not find a version that satisfies the requirement pynacl>=1.5 (from paramiko) (from versions: none)
ERROR: No matching distribution found for pynacl>=1.5
any idea?
My ansible play is this:
Code:
---
- hosts: switches
gather_facts: false
connection: network_cli
#vars_files: pass_keys.yml
tasks:
- name: Check show boot for switches
block:
- name: Check Boot path
ios_command:
commands:
- 'show clock'
register: show_clock
- debug: var=show_clock.stdout[0]
# - name: Check Boot path
# ios_command:
# commands:
# - 'show boot | i BOOT'
# register: show_boot
# - debug: var=show_boot.stdout[0]
#
# - name: Check Boot path
# ios_command:
# commands:
# - 'dir'
# register: show_flash
# - debug: var=show_flash.stdout_lines[0]
##########
- debug: msg="Print me if you can get to this line!"
run_once: true