blob: 087ceee2785dee86bace642957a6250ef5f1dac4 [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
become_user: ec2-user
synchronize:
mode: push
dest: "{{ local_resource_path }}/{{ archive_name }}"
src: "{{ hostvars[groups['mirror'][0]]['local_address'] }}:{{ archive_path }}"