diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-04-28 15:41:00 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-04-28 15:41:00 +0200 |
commit | 1b0556f73f6cac0ee799f5746248d3c51fd8ce9f (patch) | |
tree | 77a3a0d4c417c72a049cb9955b3ac9b7f1365a4a /playbooks/common/openshift-cluster/upgrades/pre | |
parent | 2b420c18beae43d2f92f5a95bd177d427e81737d (diff) | |
download | openshift-1b0556f73f6cac0ee799f5746248d3c51fd8ce9f.tar.gz openshift-1b0556f73f6cac0ee799f5746248d3c51fd8ce9f.tar.bz2 openshift-1b0556f73f6cac0ee799f5746248d3c51fd8ce9f.tar.xz openshift-1b0556f73f6cac0ee799f5746248d3c51fd8ce9f.zip |
move excluder upgrade validation tasks under openshift_excluder role
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/pre')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml b/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml deleted file mode 100644 index 6de1ed061..000000000 --- a/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -# input variables: -# - repoquery_cmd -# - excluder -# - openshift_upgrade_target -- block: - - name: Get available excluder version - command: > - {{ repoquery_cmd }} --qf '%{version}' "{{ excluder }}" - register: excluder_version - failed_when: false - changed_when: false - - - name: Docker excluder version detected - debug: - msg: "{{ excluder }}: {{ excluder_version.stdout }}" - - - name: Printing upgrade target version - debug: - msg: "{{ openshift_upgrade_target }}" - - - name: Check the available {{ excluder }} version is at most of the upgrade target version - fail: - msg: "Available {{ excluder }} version {{ excluder_version.stdout }} is higher than the upgrade target version" - when: - - "{{ excluder_version.stdout != '' }}" - - "{{ excluder_version.stdout.split('.')[0:2] | join('.') | version_compare(openshift_upgrade_target.split('.')[0:2] | join('.'), '>', strict=True) }}" - when: - - not openshift.common.is_atomic | bool |