Uploaded by Andrew Battersby

show ip int brief

advertisement
---
- name: save interface config
hosts: all
gather_facts: false
connection: local
tasks:
- name: Run multiple commands
ios_command:
commands:
- show ip int brief
register: print_output
- debug: var=print_output.stdout_lines
- name: save output to a file
copy: content="{{ print_output.stdout[0] }}" dest="./interfaces/{{ inventory_hostname }}.txt"
Download