mirror of
https://github.com/luzifer-ansible/journalbeat.git
synced 2024-11-08 13:50:07 +00:00
Allow overriding download url
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6d45fb33ab
commit
69dd6a40d8
1 changed files with 6 additions and 1 deletions
|
@ -7,9 +7,14 @@
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
changed_when: no
|
changed_when: no
|
||||||
|
|
||||||
|
- name: Set download URL
|
||||||
|
set_fact:
|
||||||
|
journalbeat_download_url: 'https://github.com/mheese/journalbeat/releases/download/v{{ journalbeat_version }}/journalbeat-debian'
|
||||||
|
when: journalbeat_download_url is not defined
|
||||||
|
|
||||||
- name: Get requested journalbeat version
|
- name: Get requested journalbeat version
|
||||||
get_url:
|
get_url:
|
||||||
url: 'https://github.com/mheese/journalbeat/releases/download/v{{ journalbeat_version }}/journalbeat-debian'
|
url: '{{ journalbeat_download_url }}'
|
||||||
dest: /usr/local/bin/journalbeat
|
dest: /usr/local/bin/journalbeat
|
||||||
force: yes
|
force: yes
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
Loading…
Reference in a new issue