SHARE
TWEET

Untitled

a guest Oct 13th, 2017 60 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
Top