Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ---
  2. - name: enable ssh
  3. hosts: routers
  4. gather_facts: false
  5. connection: local
  6.  
  7. tasks:
  8. - name: enable ssh
  9. telnet:
  10. user: vooray
  11. password: passwd
  12. login_prompt: "Username: "
  13. prompts:
  14. - "[>|#]"
  15. command:
  16. - term le 0
  17. - conf t
  18. - ip domain-name lab.local
  19. - crypto key generate rsa modulus 1024
  20. - ip ssh version 2
  21. - exit
  22. - wr mem
  23. - exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement