Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: ops01
- gather_facts: no
- vars:
- cli:
- host: "{{ inventory_hostname }}"
- port: 2222
- username: netop
- password: netop
- tasks:
- - name: run show commands over cli
- ops_command:
- commands:
- - show version
- - show running-config
- provider: "{{ cli }}"
- connection: local
Add Comment
Please, Sign In to add comment