Commit e705f590 by Cory Lee

OPS-2532 Dont download tars if you already have them

parent 8a065a45
...@@ -179,15 +179,17 @@ ...@@ -179,15 +179,17 @@
- install:configuration - install:configuration
with_items: with_items:
- "{{ SPLUNK_APP_TARS }}" - "{{ SPLUNK_APP_TARS }}"
ignore_errors: True
- name: download missing tars - name: download missing tars
shell: "aws s3 cp {{ SPLUNK_APP_S3_PATH }}/{{ item.file_name }} {{ SPLUNK_APP_DOWNLOAD_PATH }}/{{ item.file_name }}" shell: "aws s3 cp {{ SPLUNK_APP_S3_PATH }}/{{ item.1.file_name }} {{ SPLUNK_APP_DOWNLOAD_PATH }}/{{ item.1.file_name }}"
tags: tags:
- install - install
- install:configuration - install:configuration
when: item.rc != 0 when: item.0.rc != 0
with_items: with_together:
- "{{ app_present.results }}" - "{{ app_present.results }}"
- "{{ SPLUNK_APP_TARS }}"
- name: verify app checksums - name: verify app checksums
shell: "echo \"{{ item.md5sum }} {{ SPLUNK_APP_DOWNLOAD_PATH }}/{{ item.file_name }}\" | md5sum -c --status" shell: "echo \"{{ item.md5sum }} {{ SPLUNK_APP_DOWNLOAD_PATH }}/{{ item.file_name }}\" | md5sum -c --status"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment