Advertisement
byt3_m3

get_facts

Sep 21st, 2017
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. - name: IOS Fact Finder
  2. hosts: "BITS_CORE_SW"
  3. gather_facts: false
  4. connection: local
  5.  
  6.  
  7. vars:
  8. cli:
  9. username: cisco
  10. password: cisco
  11.  
  12.  
  13. tasks:
  14. - name: Gathering IOS Facts
  15. ios_facts:
  16. gather_subset: all
  17. provider: "{{ cli }}"
  18.  
  19.  
  20. - name: Print Interfaces
  21. debug: var=ansible_net_interfaces.FastEthernet1/0/1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement