- name: Remove files file: path: "{{ install_path }}/{{ item.path }}" state: absent with_filetree: "skel/" when: item.state == 'file' - name: Remove cloned repositories file: path: "{{ install_path }}/{{ item }}" state: absent loop: - ".fzf" - ".vim"