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

25 views
Skip to first unread message

Sumer Singh

unread,
May 15, 2018, 9:57:20 AM5/15/18
to Ansible Project
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

Sumer Singh

unread,
May 15, 2018, 10:01:55 AM5/15/18
to Ansible Project
Hi ,

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

Sumer Singh

unread,
May 15, 2018, 10:02:25 AM5/15/18
to Ansible Project
 
 - name: "Restore the backup config files"
     copy: src=/ebsvol/BKUP/optimax.properties dest=/ebsvol/OptiMaxAmigo/Optimax/config/optimax.properties mode=0777


Sumer Singh

unread,
May 15, 2018, 10:04:00 AM5/15/18
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages