Differences

This shows you the differences between two versions of the page.

Link to this comparison view

show_interfaces [2019/09/11 21:46] (current)
matt created
Line 1: Line 1:
 +=== Python V2 & V3 Compliant ===
 +<WRAP prewrap>
 +<code>
 +---
 +- hosts: prod
 +  gather_facts: false
 +  connection: local
  
 +  tasks:
 +   - name: Show Device Interfaces
 +     ios_command:
 +       commands:
 +         - show ip int bri
 +     register: out
 +   - name: Save Info 
 +     copy: 
 +      content: "{{ out.stdout[0] }}"
 +      dest: "/home/dm/Downloads/sh_int-{{ inventory_hostname }}.txt"
 +</code>
 +</WRAP>