This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to propagate binaries without access to internet (#239)
- Loading branch information
1 parent
35aa738
commit 9344de5
Showing
6 changed files
with
95 additions
and
40 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
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,5 +1,37 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
hosts: localhost | ||
gather_facts: false | ||
tasks: [] | ||
vars: | ||
# Version seeds to be specified here as molecule doesn't have access to ansible_version at this stage | ||
version: 2.14.0 | ||
tasks: | ||
- name: download prometheus binary to local folder | ||
become: false | ||
get_url: | ||
url: "https://github.com/prometheus/prometheus/releases/download/v{{ version }}/prometheus-{{ version }}.linux-amd64.tar.gz" | ||
dest: "/tmp/prometheus-{{ version }}.linux-amd64.tar.gz" | ||
register: _download_archive | ||
until: _download_archive is succeeded | ||
retries: 5 | ||
delay: 2 | ||
run_once: true | ||
check_mode: false | ||
|
||
- name: unpack prometheus binaries | ||
become: false | ||
unarchive: | ||
src: "/tmp/prometheus-{{ version }}.linux-amd64.tar.gz" | ||
dest: "/tmp" | ||
creates: "/tmp/prometheus-{{ version }}.linux-amd64/prometheus" | ||
run_once: true | ||
check_mode: false | ||
|
||
- name: link to prometheus binaries directory | ||
become: false | ||
file: | ||
src: "/tmp/prometheus-{{ version }}.linux-amd64" | ||
dest: "/tmp/prometheus-linux-amd64" | ||
state: link | ||
run_once: true | ||
check_mode: false |
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