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