blob: 769475dd5e3a841521c3d59b6dc5855d6875b5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---
# 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<major>\d)\.(?P<minor>\d).*$', '3_\\g<minor>') }}"
when: openshift_logging_mux_image_version != 'latest'
- fail:
msg: Invalid version specified for mux
when: mux_version not in __allowed_mux_versions
|