blob: 3d1215b7ccdb49ab037ab9be91c5e5ae0c3af27a [file] [log] [blame]
---
# tasks file for apigee-opdk-setup-local-repository-archive
- name: Clean up any old repos
file:
path: '{{ apigeerepobasepath }}/repos'
state: absent
- name: Ensure folders exists
file:
path: '{{ apigeerepobasepath }}/repos'
state: directory
- name: Install rsync if its missing
yum:
name: rsync
state: present
- name: Use rsync to copy to remote node
synchronize:
src: "{{ local_apigee_path }}/{{ apigee_archive_name }}"
dest: "{{ apigeerepobasepath }}/{{ apigee_archive_name }}"
- name: Unarchive local archive to remote nodes
unarchive:
src: '{{ apigeerepobasepath }}/{{ apigee_archive_name }}'
dest: '{{ apigeerepobasepath }}'
copy: false