Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ansible-valut create group_vars/routers
  2.  
  3. ansible_ssh_user: admin
  4. ansible_ssh_pw: admin
  5. auth_pass: admin
  6.  
  7. ---
  8. - hosts:routers
  9. gather_facts: true
  10. connection: local
  11.  
  12. tasks:
  13. - name: show run
  14. ios_command:
  15. authorize: yes
  16. auth_pass: "{{ auth_pass }}"
  17. commands:
  18. - show run
  19. register: config
  20.  
  21. ansible-playbook -u admin script.yaml --ask-vault-pass
  22.  
  23. Unable to elevate privelage to enable mode, at prompt [None] with error: timeout value 10 seconds reached while trying to send command: enable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement