--- - 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 }}"