mirror of
https://github.com/luzifer-ansible/journalbeat.git
synced 2024-12-22 09:21:16 +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
|
||||
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
|
||||
get_url:
|
||||
url: 'https://github.com/mheese/journalbeat/releases/download/v{{ journalbeat_version }}/journalbeat-debian'
|
||||
url: '{{ journalbeat_download_url }}'
|
||||
dest: /usr/local/bin/journalbeat
|
||||
force: yes
|
||||
mode: 0755
|
||||
|
|
Loading…
Reference in a new issue