Guest User

Untitled

a guest
Mar 29th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ---
  2. - hosts: ops01
  3. gather_facts: no
  4.  
  5. vars:
  6. cli:
  7. host: "{{ inventory_hostname }}"
  8. port: 2222
  9. username: netop
  10. password: netop
  11.  
  12. tasks:
  13. - name: run show commands over cli
  14. ops_command:
  15. commands:
  16. - show version
  17. - show running-config
  18. provider: "{{ cli }}"
  19. connection: local
Add Comment
Please, Sign In to add comment