From 18bfd7f81f308fb6efa45039059eb47063b9bc7f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 27 Apr 2018 12:10:33 +0200 Subject: [PATCH] Update version, adjust tasks for new version Signed-off-by: Knut Ahlers --- defaults/main.yml | 2 +- tasks/main.yml | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4378480..cd71cc7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -11,6 +11,6 @@ instance_status_config_refresh: 10m instance_status_port: 9000 instance_status_unhealthy_threshold: 5 instance_status_verbose: false -instance_status_version: v0.5.2 +instance_status_version: v0.6.1 ... diff --git a/tasks/main.yml b/tasks/main.yml index 149fd99..f69927c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,16 +13,15 @@ when: "'http://' not in instance_status_checks_file and 'https://' not in instance_status_checks_file" - name: Get current elb-instance-status version - shell: "/usr/local/bin/elb-instance-status --version || true" + shell: "/usr/local/bin/elb-instance-status_linux_amd64 --version || true" check_mode: no register: instance_status_version_cmd - name: Download elb-instance-status release - get_url: - url: 'https://github.com/Luzifer/elb-instance-status/releases/download/{{ instance_status_version }}/elb-instance-status_linux_amd64' - dest: /usr/local/bin/elb-instance-status - force: yes - mode: 0755 + unarchive: + src: 'https://github.com/Luzifer/elb-instance-status/releases/download/{{ instance_status_version }}/elb-instance-status_linux_amd64.tar.gz' + remote_src: true + dest: /usr/local/bin when: instance_status_version not in instance_status_version_cmd.stdout register: instance_status_binary @@ -40,7 +39,7 @@ Restart=on-failure RestartSec=10 SyslogIdentifier=elb-instance-status - ExecStart=/usr/local/bin/elb-instance-status \ + ExecStart=/usr/local/bin/elb-instance-status_linux_amd64 \ --check-definitions-file={{ instance_status_checks_file }} \ --check-interval={{ instance_status_check_interval }} \ --config-refresh={{ instance_status_config_refresh }} \