Fix: Force replacement on version mismatch

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-25 02:43:23 +01:00
parent 0a7d9d71f1
commit ef4a4c5045
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -20,6 +20,7 @@
get_url: get_url:
url: 'https://github.com/Luzifer/elb-instance-status/releases/download/{{ instance_status_version }}/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 dest: /usr/local/bin/elb-instance-status
force: yes
mode: 0755 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