ansible/test/integration/targets/exos_command/tests/common/prompt.yaml

18 lines
447 B
YAML
Raw Normal View History

---
- debug: msg="START common/prompt.yaml on connection={{ ansible_connection }}"
- name: run command that requires answering a prompt
exos_command:
commands:
- command: 'clear license-info'
prompt: 'Are you sure.*'
answer: 'Yes'
register: result
- assert:
that:
- "result.changed == false"
- "result.stdout is defined"
- debug: msg="END common/prompt.yaml on connection={{ ansible_connection }}"