updated installation of approach for mirror
diff --git a/tasks/main.yml b/tasks/main.yml index 0ad485d..285a0a8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -7,11 +7,14 @@ - { key: 'copy_archive', value: '{{ copy_archive }}' } - name: Install the local mirror with proxy - shell: "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror install" + shell: "{{ item }}" environment: no_proxy: "{{ no_proxy }}" http_proxy: "{{ http_proxy }}" https_proxy: "{{ https_proxy }}" + with_items: + - "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror uninstall" + - "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror install" - name: Sync the local mirror with only new rpms with proxy shell: "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror sync --only-new-rpms apigeereleasever={{ apigeereleasever | default(opdk_version) }}"