would like to skip unzip if directory exist

Hi!

I would like to skip the unzip of my task if the directory already exists. Here are my info.

contents of playbook: install_zip.yml

Try

  • name: decompress zip
    win_unzip:
    dest: “{{ item.dstpath }}”
    src: “{{ item.abspath }}”
    with_items: “{{ zip_info }}”

when: ( ansible_os_family == “Windows” and not dir_stat.stat.exists )

Chris