Difference between revisions of "Ios ping"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 21: Line 21:
 
* <code>[[--private-key]]</code>
 
* <code>[[--private-key]]</code>
 
* <code>[[ios_command]]</code>
 
* <code>[[ios_command]]</code>
ansible_connection: ansible.netcommon.[[network_cli]]
+
[[ansible_connection:]] ansible.netcommon.[[network_cli]]
 
  ansible_network_os: ios
 
  ansible_network_os: ios
 
  ansible_become: yes
 
  ansible_become: yes

Revision as of 04:46, 27 August 2021

#!/usr/bin/env ansible-playbook

- hosts: HOSTNAME
  gather_facts: false
  connection: network_cli
  remote_user: USERNAME

  tasks:
      - ios_ping:
          dest: 10.10.10.1


TASK [ios_ping] 
****************************************************************************************************************************
fatal: [SERVER]: FAILED! => {"changed": false, "msg": "Connection type ssh is not valid for this module"}
It maybe a paramiko problem: https://github.com/ansible/ansible/issues/31699

Related terms

ansible_connection: ansible.netcommon.network_cli

ansible_network_os: ios
ansible_become: yes
ansible_become_method: enable

See also

Advertising: