diff options
author | Luke Meyer <lmeyer@redhat.com> | 2017-04-10 13:39:10 -0400 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-04-10 13:39:10 -0400 |
commit | 3d4fe8880959ccfe0da6be4394926f7570a90bbf (patch) | |
tree | 1d3ad2607c22d04668c47b6ca66b331f28c0ae0b /roles | |
parent | 3ea629b458c78db194443563aab4a8d09e9a07b4 (diff) | |
download | openshift-3d4fe8880959ccfe0da6be4394926f7570a90bbf.tar.gz openshift-3d4fe8880959ccfe0da6be4394926f7570a90bbf.tar.bz2 openshift-3d4fe8880959ccfe0da6be4394926f7570a90bbf.tar.xz openshift-3d4fe8880959ccfe0da6be4394926f7570a90bbf.zip |
openshift_sanitize_inventory: disallow conflicting deployment types
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_sanitize_inventory/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/openshift_sanitize_inventory/tasks/main.yml b/roles/openshift_sanitize_inventory/tasks/main.yml index b944c8991..f15dc16d1 100644 --- a/roles/openshift_sanitize_inventory/tasks/main.yml +++ b/roles/openshift_sanitize_inventory/tasks/main.yml @@ -1,4 +1,17 @@ --- +- name: Abort when conflicting deployment type variables are set + when: + - deployment_type is defined + - openshift_deployment_type is defined + - openshift_deployment_type != deployment_type + fail: + msg: |- + openshift_deployment_type is set to "{{ openshift_deployment_type }}". + deployment_type is set to "{{ deployment_type }}". + To avoid unexpected results, this conflict is not allowed. + deployment_type is deprecated in favor of openshift_deployment_type. + Please specify only openshift_deployment_type, or make both the same. + - name: Standardize on latest variable names set_fact: # goal is to deprecate deployment_type in favor of openshift_deployment_type. |