blob: c387471ffa317492835e241801ef1730f904c2d3 [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
delegate_to: '{{ inventory_hostname }}'
synchronize:
mode: push
dest: "{{ archive_folder }}/{{ archive_name }}"
src: "rsync://{{ groups['mirror'][0]] }}:{{ archive_path }}"