-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from ansistrano/download_strategy
download strategy
- Loading branch information
Showing
6 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
- include: copy.yml | ||
|
||
- name: ANSISTRANO | copy_unarchive Set archived file | ||
- name: ANSISTRANO | copy_unarchive | Set archived file | ||
set_fact: ansistrano_archived_file={{ ansistrano_release_path.stdout }}/{{ ansistrano_deploy_from | basename }} | ||
|
||
- include: unarchive.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: ANSISTRANO | download | Create release folder | ||
file: state=directory path={{ ansistrano_release_path.stdout }} | ||
|
||
- name: ANSISTRANO | download | Download artifact | ||
get_url: url={{ ansistrano_get_url }} dest={{ ansistrano_release_path.stdout }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- include: download.yml | ||
|
||
- name: ANSISTRANO | download_unarchive | Set archived file | ||
set_fact: ansistrano_archived_file={{ ansistrano_release_path.stdout }}/{{ ansistrano_get_url | basename }} | ||
|
||
- include: unarchive.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
- include: s3.yml | ||
|
||
- name: ANSISTRANO | s3_unarchive Set archived file | ||
- name: ANSISTRANO | s3_unarchive | Set archived file | ||
set_fact: ansistrano_archived_file={{ ansistrano_release_path.stdout }}/{{ ansistrano_s3_object }} | ||
|
||
- include: unarchive.yml | ||
- include: unarchive.yml |