upload-artifactory: fix version comparision

This check fails when Ansible updated to two-digit point releases; use
the version filter.

Change-Id: I4be5543f21017b747333657416eac8c3cae89838
This commit is contained in:
Ian Wienand 2022-07-27 05:26:41 +10:00
parent a46b34b9f7
commit ac056cd6da

View File

@ -1,7 +1,7 @@
- name: Fail if run by an unsupported ansible version
fail:
msg: This role can only be used by ansible version 2.7 and greater.
when: ansible_version.full < "2.7.0"
when: ansible_version.full is version('2.7.0', '<')
- name: Upload artifacts
include_tasks: upload.yaml