Skip to content

Instantly share code, notes, and snippets.

@awilki01
Created March 29, 2018 21:41
Show Gist options
  • Save awilki01/a5eccc20b2cebb5c70bf2d17bf22a376 to your computer and use it in GitHub Desktop.
Save awilki01/a5eccc20b2cebb5c70bf2d17bf22a376 to your computer and use it in GitHub Desktop.
Router prompt playbook not working
---
- 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