updated installation of approach for mirror
diff --git a/tasks/main.yml b/tasks/main.yml index b9f093e..59b6a01 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -6,7 +6,7 @@ with_items: - { key: 'copy_archive', value: '{{ copy_archive }}' } -- name: Install the local mirror with proxy +- name: Uninstall the local mirror shell: /opt/apigee/apigee-service/bin/apigee-service apigee-mirror uninstall environment: no_proxy: "{{ no_proxy }}" @@ -15,14 +15,14 @@ args: removes: "{{ apigee_home }}/apigee-mirror" -- name: Install the local mirror with proxy +- name: Install the local mirror shell: /opt/apigee/apigee-service/bin/apigee-service apigee-mirror install environment: no_proxy: "{{ no_proxy }}" http_proxy: "{{ http_proxy }}" https_proxy: "{{ https_proxy }}" -- name: Sync the local mirror with only new rpms with proxy +- name: Sync the local mirror with only new rpms shell: "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror sync --only-new-rpms apigeereleasever={{ apigeereleasever | default(opdk_version) }}" when: all_rpms is not defined and not all_rpms | bool == True environment: @@ -30,7 +30,7 @@ http_proxy: "{{ http_proxy }}" https_proxy: "{{ https_proxy }}" -- name: Sync the local mirror with all rpms with proxy +- name: Sync the local mirror with all rpms shell: "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror sync apigeereleasever={{ apigeereleasever | default(opdk_version) }}" when: all_rpms is defined and all_rpms | bool == True environment: @@ -43,7 +43,7 @@ shell: "yum reinstall --downloadonly --downloaddir={{ apigee_home }}/data/apigee-mirror/repos/thirdparty/7 {{ archive_extra_packages | join(' ') }}" when: archive_extra_packages is defined -- name: Create archive with proxy +- name: Create archive shell: "/opt/apigee/apigee-service/bin/apigee-service apigee-mirror package" environment: no_proxy: "{{ no_proxy }}"