mirror of
https://github.com/luzifer-ansible/instance-status.git
synced 2024-11-08 05:40:00 +00:00
Switch to different repo, improve installation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8a68f5f806
commit
8432aea690
2 changed files with 11 additions and 11 deletions
|
@ -3,4 +3,6 @@
|
|||
instance_status_apt_required: []
|
||||
instance_status_checks: {}
|
||||
|
||||
instance_status_version: v0.5.2
|
||||
|
||||
...
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue