blob: 3f28ae8054a0f52e575c1edeb7c97a5fb9000c0e [file] [log] [blame]
---
# tasks file for apigee-opdk-setup-local-repository
- name: Install the local mirror
shell: "{{ apigee_service }} apigee-mirror install"
- name: Clear the local mirror data directory
shell: "{{ apigee_service }} apigee-mirror clean"
register: result
- name: Sync the local mirror with only new rpms
shell: "{{ apigee_service }} apigee-mirror sync --only-new-rpms apigeereleasever={{ apigee_mirror_version }}"
when: all_rpms is not defined and not all_rpms == bool | True
- name: Sync the local mirror with all rpms
shell: "{{ apigee_service }} apigee-mirror sync apigeereleasever={{ apigee_mirror_version }}"
when: all_rpms is defined and all_rpms == bool | True
- name: Create archive
shell: "{{ apigee_service }} apigee-mirror package"
register: result