--- # debating making this a module instead? - fail: msg: Missing version to install provided by 'openshift_logging_curator_image_version' when: not openshift_logging_curator_image_version or openshift_logging_curator_image_version == '' - set_fact: curator_version: "{{ __latest_curator_version }}" when: openshift_logging_curator_image_version == 'latest' # should we just assume that we will have the correct major version? - set_fact: curator_version="{{ openshift_logging_curator_image_version | regex_replace('^v?(?P\d)\.(?P\d).*$', '3_\\g') }}" when: openshift_logging_curator_image_version != 'latest' - fail: msg: Invalid version specified for Curator when: curator_version not in __allowed_curator_versions