# 'unarchive' has extra params, which is only allowed in the following modules

**URL:** <https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533>\
**Category:** Ansible Project\
**Created:** [May 15, 2018, 1:57pm UTC](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533 "2018-05-15T13:57:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumer\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sumer\_Singh](https://forum.ansible.com/u/Sumer_Singh)\
**Post date:** [May 15, 2018, 1:57pm UTC](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533/1 "2018-05-15T13:57:20Z")

</div>

ERROR! this task ‘unarchive’ has extra params, which is only allowed in the following modules: command, win\_command, shell, win\_shell, script, include, include\_vars, include\_tasks, include\_role, import\_tasks, import\_role, add\_host, group\_by, set\_fact, raw, meta

The error appears to have been in ‘/ebsvol/OptiMaxAmigo/OptiMax/playbook/CD/first.yml’: line 35, column 6, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

copy: remote\_src=True src=/usr/share/tomcat9/webapps/ dest=/ebsvol/BKUP/

- name: “Copying and untar the S3 downloaded file”  
^ here

---

<div class="post-metadata">

**Author:** ![Sumer\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sumer\_Singh](https://forum.ansible.com/u/Sumer_Singh)\
**Post date:** [May 15, 2018, 2:01pm UTC](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533/2 "2018-05-15T14:01:55Z")

</div>

Hi ,

Can any one help to find the system error on unarchive module

---

<div class="post-metadata">

**Author:** ![Sumer\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sumer\_Singh](https://forum.ansible.com/u/Sumer_Singh)\
**Post date:** [May 15, 2018, 2:02pm UTC](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533/3 "2018-05-15T14:02:25Z")

</div>

- name: “Restore the backup config files”  
copy: src=/ebsvol/BKUP/optimax.properties dest=/ebsvol/OptiMaxAmigo/Optimax/config/optimax.properties mode=0777

---

<div class="post-metadata">

**Author:** ![Sumer\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sumer\_Singh](https://forum.ansible.com/u/Sumer_Singh)\
**Post date:** [May 15, 2018, 2:03pm UTC](https://forum.ansible.com/t/unarchive-has-extra-params-which-is-only-allowed-in-the-following-modules/27533/4 "2018-05-15T14:03:59Z")

</div>

sorry … correct module are given below with line number

35 - name: “Copying and untar the S3 downloaded file”  
36 unarchive: src:/ebsvol/OptiMaxAmigo/OptiMax/playbook/CD/omx-11.tar dest:/ebsvol/OptiMaxAmigo/omx-11.tar
