daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Oct 13th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2.  - name: ios play
  3.    hosts: s1
  4.    gather_facts: no
  5.    connection: local
  6.    vars:
  7.       host: "{{ inventory_hostname }}"
  8.       user: "steve"
  9.       passwd: "cisco"
  10.    tasks:
  11.     - name: get facts from device
  12.       napalm_get_facts:
  13.          hostname={{ inventory_hostname }}
  14.          username={{ user }}
  15.          dev_os="ios"
  16.          password={{ passwd }}
  17. #         filter='facts,interfaces,bgp_neighbors'
  18.       register: result
  19.  
  20.     - name: print data
  21.       debug: var=result
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top