blob: 8356bedfe3c4b7fbdb2add747b7dea2ec4ba7866 [file] [log] [blame]
---
# tasks file for apigee-opdk-setup-local-repository-archive
- name: Clean up and repos in /tmp
file:
path: '{{ apigeerepobasepath }}/repos'
state: absent
#- block:
# - name: Unarchive local archive to remote nodes
# unarchive:
# src: '{{ local_apigee_path }}/{{ apigee_archive_name }}'
# dest: '{{ apigeerepobasepath }}'
# copy: '{{ copy_archive }}'
#
# rescue:
- 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