# Failed to find handler for

**URL:** <https://forum.ansible.com/t/failed-to-find-handler-for/27066>\
**Category:** Ansible Project\
**Created:** [March 21, 2018, 11:13am UTC](https://forum.ansible.com/t/failed-to-find-handler-for/27066 "2018-03-21T11:13:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danish09](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@danish09](https://forum.ansible.com/u/danish09)\
**Post date:** [March 21, 2018, 11:13am UTC](https://forum.ansible.com/t/failed-to-find-handler-for/27066/1 "2018-03-21T11:13:50Z")

</div>

When I am downloading a tar.gz file and unarchiving it using the unarchive module, ansible fails with “Failed to find handler for "/usr/share/openjdk-9.0.4\_linux-x64\_bin.tar.gz". Make sure the required command to extract the file is installed. Commands "gtar" and "tar" not found. Command "unzip" not found.”

But when I run just the piece of code unarchive module code on an already present tar.gz file, ansible works perfectly. I already have all the missing packages installed in the box.

Thanks

```auto

ansible 2.4.3.0

```

the is the piece of code which fails:

```auto

    - name: downloading java 
      get_url:
        url: https://download.java.net/java/GA/jdk9/9.0.4/binaries/openjdk-9.0.4_linux-x64_bin.tar.gz
        dest: /usr/share/
        owner: root
        group: root
        mode: 0644  

    - name: unarchiving java source file
      unarchive:
        src: /usr/share/openjdk-9.0.4_linux-x64_bin.tar.gz
        dest: /usr/share/
        owner: root
        group: root
        mode: 0644

```

the piece of code which succeeds:

```auto

    - name: unarchiving java source file
      unarchive:
        src: /usr/share/openjdk-9.0.4_linux-x64_bin.tar.gz
        dest: /usr/share/
        owner: root
        group: root
        mode: 0644

```
