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

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

Hi ,

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

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

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