summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/sync.yml
blob: 07764caf0bb0d2abf3e65e094139bac3566241b1 (plain)
1
2
3
4
5
6
7
8
---
- name: Check if already exists
  stat: path="{{ item_dest }}" 
  register: result

- name: "Sync '{{ item_name }}'"
  local_action: synchronize src="{{ item_src }}" dest="{{ remote_path }}/" archive=yes
  when: (result.stat.exists == False) or (kaas_resync | default(false))