Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- # Adapted from https://github.com/networktocode/ntc-ansible/blob/master/examples.md
- - name: GET STRUCTURED DATA BACK FROM CLI DEVICES
- hosts: all
- connection: local
- gather_facts: False
- tasks:
- - name: GET VLANS IN REAL TIME
- ntc_show_command:
- connection: ssh
- platform: "{{ platform }}"
- command: "{{ vlan_command }}"
- host: "{{ inventory_hostname }}"
- username: "{{ username }}"
- password: "{{ password }}"
- register: result
- - debug: var=result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement