# Erreur parameter in ios\_command module

**URL:** <https://forum.ansible.com/t/erreur-parameter-in-ios-command-module/33125>\
**Category:** Ansible Project\
**Created:** [June 9, 2020, 8:29am UTC](https://forum.ansible.com/t/erreur-parameter-in-ios-command-module/33125 "2020-06-09T08:29:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redhat](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@Redhat](https://forum.ansible.com/u/Redhat)\
**Post date:** [June 9, 2020, 8:29am UTC](https://forum.ansible.com/t/erreur-parameter-in-ios-command-module/33125/1 "2020-06-09T08:29:57Z")

</div>

Hello;

I wanted to update switch cisco by ansible. To copy the ios image from SFTP server, the playbook deployment will display the following error:

FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (ios\_command) module: register Supported parameters include: auth\_pass, authorize, commands, host, interval, match, password, port, provider, retries, ssh\_keyfile, timeout, username, wait\_for”}

ansible --version:

ansible 2.9.9  
config file = /etc/ansible/cisco/test/ansible.cfg  
configured module search path = [u’/etc/ansible/ntc-ansible/ntc-ansible/library’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /bin/ansible  
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)

group\_vars:

new\_ios : c2960s.152-2.E8.bin  
name : xxxx  
pswd : xxxx

Playbook:

- name: Upgrade IOS  
hosts: host  
connection: local  
gather\_facts: no

vars:  
provider:  
authorize: yes  
host: “{{ host }}”  
username: “{{ username }}”  
password: “{{ password }}”  
auth\_pass: “{{ password\_enable }}”

tasks:

- name: Copy IOS to flash  
delegate\_to: localhost  
ios\_command:  
command: “scp -p 22 sftp://XX.XX.XX.XX/{{ new\_ios }} bootflash:”  
username: “{{ name }}”  
password: “{{ pswd }}”  
prompt: ‘[{{ new\_ios }}]’  
answer: “\r”  
register: config

- debug: msg=“{{ config.stdout }}”

vars:  
ansible\_command\_timeout: 18000  
delay\_factor: 12

Thank you in advance for your proposals.

Regards.

---

<div class="post-metadata">

**Author:** ![Jorge\_Rua1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Post date:** [June 9, 2020, 8:32am UTC](https://forum.ansible.com/t/erreur-parameter-in-ios-command-module/33125/2 "2020-06-09T08:32:31Z")

</div>

Apparently ios\_command module accepts commands (in plural) instead of command.

Regards,
