mirror of
https://github.com/luzifer-ansible/instance-status.git
synced 2024-11-08 13:50:01 +00:00
Update version, adjust tasks for new version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6ded21397d
commit
18bfd7f81f
2 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
||||
...
|
||||
|
|
|
@ -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 }} \
|
||||
|
|
Loading…
Reference in a new issue