Allow overriding download url

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-20 13:44:14 +01:00
parent 6d45fb33ab
commit 69dd6a40d8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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