mirror of
https://github.com/luzifer-ansible/instance-status.git
synced 2024-11-08 13:50:01 +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_apt_required: []
|
||||||
instance_status_checks: {}
|
instance_status_checks: {}
|
||||||
|
|
||||||
|
instance_status_version: v0.5.2
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -11,19 +11,17 @@
|
||||||
dest: /etc/elb-instance-status.yml
|
dest: /etc/elb-instance-status.yml
|
||||||
register: instance_status_config
|
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
|
- name: Download elb-instance-status release
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/Jimdo/elb-instance-status/releases/download/v0.5.1/elb-instance-status_linux_amd64
|
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_v0.5.1
|
|
||||||
sha256sum: 3ce2fa44296e2ff5b2cca2e9b2348bbd49884eadfe66389ec6d201f5e71650c0
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Link elb-instance-status
|
|
||||||
file:
|
|
||||||
dest: /usr/local/bin/elb-instance-status
|
dest: /usr/local/bin/elb-instance-status
|
||||||
src: /usr/local/bin/elb-instance-status_v0.5.1
|
mode: 0755
|
||||||
state: link
|
when: instance_status_version not in instance_status_version_cmd.output
|
||||||
register: instance_status_link
|
register: instance_status_binary
|
||||||
|
|
||||||
- name: Install system.d service
|
- name: Install system.d service
|
||||||
copy:
|
copy:
|
||||||
|
@ -53,4 +51,4 @@
|
||||||
name: elb-instance-status
|
name: elb-instance-status
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
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