While using the module unarchive to upload a file.tar.gz from /tmp on my 
local machine I keep getting this error.
msg: Failed to find handler to unarchive. Make sure the required command to 
extract the file is installed.

Here are the logs I'm gathering on my localhost machine.

<host2.example.com> REMOTE_MODULE setup
2015-08-03 19:10:43,508 p=27364 u=andy |  ok: [host2.example.com]
2015-08-03 19:10:43,509 p=27364 u=andy |  TASK: [upload owasp ruleset and 
unpack] *************************************** 
2015-08-03 19:10:59,984 p=27364 u=andy |  failed: [host2.example.com] => 
{"failed": true}
2015-08-03 19:10:59,984 p=27364 u=andy |  msg: Failed to find handler to 
unarchive. Make sure the required command to extract the file is installed.
2015-08-03 19:10:59,984 p=27364 u=andy |  FATAL: all hosts have already 
failed -- aborting
2015-08-03 19:10:59,984 p=27364 u=andy |  PLAY RECAP 
******************************************************************** 
2015-08-03 19:10:59,984 p=27364 u=andy |             to retry, use: --limit 
@/home/abrittingham/ksm_test.retry

2015-08-03 19:10:59,985 p=27364 u=andy |  host2.example.com : ok=1    
changed=0    unreachable=0    failed=1

On localhost:
ansible 1.9.2
  configured module search path = None
Python 2.7.6

On the target:
This is from the last attempt when i changed .tar.gz to .tgz, with the same 
result.

Here is the log entry from /var/log/messages

Aug  3 19:10:59 host2 ansible-<stdin>: Invoked with 
src=/home/andy/.ansible/tmp/ansible-tmp-1438643443.51-164965375926453/source 
directory_mode=None force=None remote_src=None dest=/etc/httpd/crs/ 
selevel=None seuser=None serole=None setype=None group=root 
creates=owasp-modsecurity-crs delimiter=None 
original_basename=owasp-modsecurity-crs.tgz mode=None follow=False 
owner=root regexp=None copy=True backup=None content=NOT_LOGGING_PARAMETER

python-2.7.5-18.el7_1.1.x86_64
for x in tar gzip bzip2 unzip; do echo $x; rpm -qa $x; done
tar
tar-1.26-29.el7.x86_64
gzip
gzip-1.5-7.el7.x86_64
bzip2
bzip2-1.0.6-12.el7.x86_64
unzip
unzip-6.0-15.el7.x86_64

This is my entire test playbook. This is just the snippet of a larger 
playbook, but it should work for testing.

---
- hosts: host2.example.com
  sudo: yes

  tasks:

  - name: upload owasp ruleset and unpack
    unarchive: src=/tmp/owasp-modsecurity-crs.tgz dest=/etc/httpd/crs/
            copy=yes creates=owasp-modsecurity-crs
            owner=root group=root # mode=600

Thanks for taking a look. Any suggestions would be appreciated.
Andy
 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3a9316cd-6372-422b-9a9f-f534f87acdba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to