--- - name: Remove tmp and obsolete files file: path={{ item }} state=absent loop: - "{{ nomad_root_dir }}/tmp/nomad_{{ nomad_version }}_linux_amd64.zip" - "{{ nomad_root_dir }}/tmp/nomad" tags: nomad