mirror of
https://github.com/luzifer-ansible/instance-status.git
synced 2024-11-09 14:19:59 +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_port: 9000
|
||||||
instance_status_unhealthy_threshold: 5
|
instance_status_unhealthy_threshold: 5
|
||||||
instance_status_verbose: false
|
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"
|
when: "'http://' not in instance_status_checks_file and 'https://' not in instance_status_checks_file"
|
||||||
|
|
||||||
- name: Get current elb-instance-status version
|
- 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
|
check_mode: no
|
||||||
register: instance_status_version_cmd
|
register: instance_status_version_cmd
|
||||||
|
|
||||||
- name: Download elb-instance-status release
|
- name: Download elb-instance-status release
|
||||||
get_url:
|
unarchive:
|
||||||
url: 'https://github.com/Luzifer/elb-instance-status/releases/download/{{ instance_status_version }}/elb-instance-status_linux_amd64'
|
src: 'https://github.com/Luzifer/elb-instance-status/releases/download/{{ instance_status_version }}/elb-instance-status_linux_amd64.tar.gz'
|
||||||
dest: /usr/local/bin/elb-instance-status
|
remote_src: true
|
||||||
force: yes
|
dest: /usr/local/bin
|
||||||
mode: 0755
|
|
||||||
when: instance_status_version not in instance_status_version_cmd.stdout
|
when: instance_status_version not in instance_status_version_cmd.stdout
|
||||||
register: instance_status_binary
|
register: instance_status_binary
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
SyslogIdentifier=elb-instance-status
|
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-definitions-file={{ instance_status_checks_file }} \
|
||||||
--check-interval={{ instance_status_check_interval }} \
|
--check-interval={{ instance_status_check_interval }} \
|
||||||
--config-refresh={{ instance_status_config_refresh }} \
|
--config-refresh={{ instance_status_config_refresh }} \
|
||||||
|
|
Loading…
Reference in a new issue