소스 검색

openshift_version now requires prepended version formats

- openshift_image_tag must start with a v unless it's set to latest
- openshift_pkg_version must start with a -
Steve Milner 8 년 전
부모
커밋
356d0a7fe7
1개의 변경된 파일0개의 추가작업 그리고 14개의 파일을 삭제
  1. 0 14
      roles/openshift_version/tasks/main.yml

+ 0 - 14
roles/openshift_version/tasks/main.yml

@@ -57,20 +57,6 @@
   - openshift_image_tag is defined
   - openshift_image_tag != "latest"
 
-# Add a v to the start of the openshift_image_tag if one was not provided
-- set_fact:
-    openshift_image_tag: "{{ 'v' + openshift_image_tag }}"
-  when:
-  - openshift_image_tag is defined
-  - openshift_image_tag[0] != 'v'
-  - openshift_image_tag != 'latest'
-
-- set_fact:
-    openshift_pkg_version: "{{ '-' + openshift_pkg_version }}"
-  when:
-  - openshift_pkg_version is defined
-  - openshift_pkg_version[0] != '-'
-
 # Make sure we copy this to a fact if given a var:
 - set_fact:
     openshift_version: "{{ openshift_version | string }}"