1 2 3 4 5 6 7 8
--- - name: Check if already exists stat: path="{{ item_dest }}" register: result - name: "Sync '{{ item_name }}'" synchronize: src="{{ item_src }}" dest="{{ remote_path }}/" archive=yes when: (result.stat.exists == False) or (kaas_resync | default(false))