Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Run command and print to terminal window
- hosts: switches
- gather_facts: no
- tasks:
- - name: Run show command
- ios_facts:
- gather_subset:
- - '!all'
- - '!min'
- gather_network_resources:
- - interfaces
- register: command_output
- - name: Display result to terminal window
- debug:
- var: ansible_network_resources
- - copy: content="{{ ansible_network_resources | to_nice_json }}" dest="out/{{inventory_hostname}}_iosfacts.json"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement