Fix: Condition broken

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-25 02:19:35 +01:00
parent fef2df1bea
commit 6858efedc6
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -12,7 +12,8 @@
register: instance_status_config
- name: Get current elb-instance-status version
command: /usr/local/bin/elb-instance-status --version
shell: "/usr/local/bin/elb-instance-status --version || true"
check_mode: no
register: instance_status_version_cmd
- name: Download elb-instance-status release
@ -20,7 +21,7 @@
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
mode: 0755
when: instance_status_version not in instance_status_version_cmd.output
when: instance_status_version not in instance_status_version_cmd.stdout
register: instance_status_binary
- name: Install system.d service