Created
March 29, 2018 21:41
-
-
Save awilki01/a5eccc20b2cebb5c70bf2d17bf22a376 to your computer and use it in GitHub Desktop.
Router prompt playbook not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment