Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Replaces rsync with copy, adds loop labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgrote committed Aug 8, 2018
1 parent f4e6c56 commit 9bbed54
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tasks/bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
###

- name: transfer bundles
synchronize:
copy:
src: "{{ item }}"
dest: "{{ ibm_infosvr_openigc_assets_dir }}/bundles"
mode: push
owner: no
group: no
with_items: "{{ ibm_infosvr_openigc_bundle_directories }}"

- name: list bundles to be deployed
Expand All @@ -38,11 +35,15 @@
become_user: root
become: yes
with_items: "{{ list_of_openigc_bundles.files }}"
loop_control:
label: "{{ item.path }}"

- name: package each bundle into a zip archive
archive: format=zip path={{ item.path }}/* dest={{ item.path }}.zip
when: item.path is defined
with_items: "{{ list_of_openigc_bundles.files }}"
loop_control:
label: "{{ item.path }}.zip"

- name: list packaged bundles to be deployed
shell: "ls -1 *.zip"
Expand Down

0 comments on commit 9bbed54

Please sign in to comment.