I have these versions installed on my servers.

tar-1.26-29.el7.x86_64
gzip-1.5-7.el7.x86_64
bzip2-1.0.6-12.el7.x86_64
unzip-6.0-15.el7.x86_64

This is a new problem since I upgraded to ansible 1.9.2 on 14.04. I can run 
the same playbook on ansible on my mac or fedora 21 with no problems.

Andy

On Friday, August 7, 2015 at 5:43:32 AM UTC-4, tkuratomi wrote:
>
> The error message you are receiving man's that ansible is unable to find 
> the program needed to uncompress and unarchive on the remote machine.  I'd 
> have to look but I believe for tar.gz files, ansible is looking for gtar 
> and then falling back to tar.  The reason is that it needs a tar that 
> supports grip compression.  Check what tar you have available on that 
> system.
>
> If there isn't an obvious problem with tar, I can lookup the exact code to 
> see what other incompatibilities might lead us to this error message.
>
> -Toshio
> On Aug 4, 2015 9:46 AM, "Andy Brittingham" <[email protected] 
> <javascript:>> wrote:
>
>> This error is limited to my Ubuntu 14.04 control box. The same playbooks 
>> run without error with Ansible 1.9.2 on Fedora 21 and Ansible 1.9.2 on OSX
>>
>> On Monday, August 3, 2015 at 8:29:25 PM UTC-4, Andy Brittingham wrote:
>>>
>>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/2b5a4a00-0936-4641-a8b4-fb57835c3d11%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/2b5a4a00-0936-4641-a8b4-fb57835c3d11%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/431f71d8-ac1e-4a39-8f91-0948761117fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to