Guest User

Untitled

a guest
Apr 7th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ---
  2. - name: Test Prompt
  3. hosts: pynet-rtr1
  4. vars:
  5. creds:
  6. host: "{{ ansible_host }}"
  7. username: "{{ username }}"
  8. password: "{{ password }}"
  9.  
  10. tasks:
  11. - ios_facts:
  12. provider: "{{ creds }}"
  13. tags: facts_only
  14.  
  15. - ios_command:
  16. provider: "{{ creds }}"
  17. commands:
  18. - command: 'clear counters fastethernet1'
  19. prompt: 'Clear "show interface" counters on this interface [confirm]'
  20. answer: c
Add Comment
Please, Sign In to add comment