summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/sync.yml
blob: 399cb6607f3cc309257315b689b95926610bea03 (plain)
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))