Switch to different repo, improve installation

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-25 02:16:26 +01:00
parent 8a68f5f806
commit 8432aea690
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 11 additions and 11 deletions

View file

@ -3,4 +3,6 @@
instance_status_apt_required: []
instance_status_checks: {}
instance_status_version: v0.5.2
...

View file

@ -11,19 +11,17 @@
dest: /etc/elb-instance-status.yml
register: instance_status_config
- name: Get current elb-instance-status version
command: /usr/local/bin/elb-instance-status --version
register: instance_status_version_cmd
- name: Download elb-instance-status release
get_url:
url: https://github.com/Jimdo/elb-instance-status/releases/download/v0.5.1/elb-instance-status_linux_amd64
dest: /usr/local/bin/elb-instance-status_v0.5.1
sha256sum: 3ce2fa44296e2ff5b2cca2e9b2348bbd49884eadfe66389ec6d201f5e71650c0
mode: 0755
- name: Link elb-instance-status
file:
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
src: /usr/local/bin/elb-instance-status_v0.5.1
state: link
register: instance_status_link
mode: 0755
when: instance_status_version not in instance_status_version_cmd.output
register: instance_status_binary
- name: Install system.d service
copy:
@ -53,4 +51,4 @@
name: elb-instance-status
state: restarted
enabled: yes
when: instance_status_config.changed or instance_status_service.changed or instance_status_service.changed
when: instance_status_config.changed or instance_status_binary.changed or instance_status_service.changed