From 69dd6a40d853350b550de88266fa99bead87fe1f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 20 Jan 2018 13:44:14 +0100 Subject: [PATCH] Allow overriding download url Signed-off-by: Knut Ahlers --- tasks/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 81f2699..84e647a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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