blob: f4ef36d4cdd91898bbd9cabd6225a9fb02e1d795 [file] [log] [blame]
---
# tasks file for apigee-opdk-setup-local-repository-archive
- name: Clean up and repos in /tmp
file:
path: '{{ archive_folder }}/repos'
state: absent
#- block:
# - name: Unarchive local archive to remote nodes
# unarchive:
# src: '{{ local_resource_path }}/{{ archive_name }}'
# dest: '{{ archive_folder }}'
# copy: '{{ copy_archive }}'
#
# rescue:
- name: Install rsync if its missing
yum:
name: rsync
state: present
- name: Use rsync to copy to remote node
synchronize:
mode: pull
dest: '{{ local_resource_path }}/{{ archive_name }}'
src: "rsync://{{ hostvars[groups['mirror'][0]]['local_address'] }}/{{ archive_folder }}"