Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: enable ssh
- hosts: routers
- gather_facts: false
- connection: local
- tasks:
- - name: enable ssh
- telnet:
- user: vooray
- password: passwd
- login_prompt: "Username: "
- prompts:
- - "[>|#]"
- command:
- - term le 0
- - conf t
- - ip domain-name lab.local
- - crypto key generate rsa modulus 1024
- - ip ssh version 2
- - exit
- - wr mem
- - exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement