Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
skip humio ctl install option, skil download and copy of humio jar if…
Browse files Browse the repository at this point in the history
… version exists
  • Loading branch information
schofield committed Apr 6, 2020
1 parent a3109e6 commit e547cc2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,21 @@
notify: Restart Humio
when: humio_cache_path is defined

- name: Check Humio jar
tags: humio-update
check_mode: no
stat:
path: "/usr/lib/humio/server-{{ humio_version }}.jar"
register: humio_version_check

- name: Download Humio jar
tags: humio-update
check_mode: no
get_url:
url: "{{ humio_mirror }}/com/humio/server/{{ humio_version }}/server-{{ humio_version }}.jar"
dest: "/usr/lib/humio/server-{{ humio_version }}.jar"
notify: Restart Humio
when: humio_mirror != 'master'
when: humio_mirror != 'master' and not humio_version_check.stat.exists

- name: Push Humio jar
tags: humio-update
Expand All @@ -91,7 +98,7 @@
src: "server-{{ humio_version }}.jar"
dest: "/usr/lib/humio/server-{{ humio_version }}.jar"
notify: Restart Humio
when: humio_mirror == 'master'
when: humio_mirror != 'master' and not humio_version_check.stat.exists

- name: Humio server jar permissions
tags: humio-update
Expand Down Expand Up @@ -189,3 +196,4 @@
src: "/usr/lib/humio/humioctl-{{ humioctl_version }}/humioctl"
dest: "/usr/bin/humioctl"
state: link
when: skip_humio_ctl_install is not defined

0 comments on commit e547cc2

Please sign in to comment.