# Clarifications needed for 'prompt' parameter of ios\_command module

**URL:** <https://forum.ansible.com/t/clarifications-needed-for-prompt-parameter-of-ios-command-module/34707>\
**Category:** Ansible Project\
**Created:** [March 2, 2021, 9:25am UTC](https://forum.ansible.com/t/clarifications-needed-for-prompt-parameter-of-ios-command-module/34707 "2021-03-02T09:25:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikram\_S](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Post date:** [March 2, 2021, 9:25am UTC](https://forum.ansible.com/t/clarifications-needed-for-prompt-parameter-of-ios-command-module/34707/1 "2021-03-02T09:25:12Z")

</div>

When i use ‘prompt’ parameter of ios\_command module for IOS image copying as in Example 1, it fails. But it succeeds as in Example 2.  
I want to understand why? I am trying to understand why this below syntax works?  
Destination filename [image name]?’

This issue happens only for IOS copying and not for other prompt related commands.

Example 1 (fails):  
ios\_command:  
commands:

- command: “copy ftp://username:password@10.4.1.104/isr4300-universalk9.16.03.07.SPA.bin flash:”  
**prompt: ‘[isr4300-universalk9.16.03.07.SPA.bin]’**  
answer: “\r”

Example 2 (suceeds):  
ios\_command:  
commands:

- command: “copy ftp://username:password@10.4.1.104/isr4300-universalk9.16.03.07.SPA.bin flash:”  
**prompt: ‘Destination filename [isr4300-universalk9.16.03.07.SPA.bin]?’**  
answer: “\r”
