Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Test Prompt
- hosts: pynet-rtr1
- vars:
- creds:
- host: "{{ ansible_host }}"
- username: "{{ username }}"
- password: "{{ password }}"
- tasks:
- - ios_facts:
- provider: "{{ creds }}"
- tags: facts_only
- - ios_command:
- provider: "{{ creds }}"
- commands:
- - command: 'clear counters fastethernet1'
- prompt: 'Clear "show interface" counters on this interface [confirm]'
- answer: c
Add Comment
Please, Sign In to add comment