Advertisement
Guest User

Untitled

a guest
Apr 20th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.56 KB | None | 0 0
  1. ---
  2. # Adapted from https://github.com/networktocode/ntc-ansible/blob/master/examples.md
  3. -   name: GET STRUCTURED DATA BACK FROM CLI DEVICES
  4.     hosts: all
  5.     connection: local
  6.     gather_facts: False
  7.     tasks:
  8.     -   name: GET VLANS IN REAL TIME
  9.         ntc_show_command:
  10.             connection: ssh
  11.             platform: "{{ platform }}"
  12.             command: "{{ vlan_command }}"
  13.             host: "{{ inventory_hostname }}"
  14.             username: "{{ username }}"
  15.             password: "{{ password }}"
  16.         register: result
  17.  
  18.     -   debug: var=result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement