diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-10-31 16:12:26 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-11-02 09:41:11 -0400 |
commit | c5a1fd2b9bc967464962ad5978f9db948a247211 (patch) | |
tree | 20b3c82e14ad4fde13a3801359c61d28a1be3615 | |
parent | 80a6839214f3a006e696dec3dfd6d0a267669230 (diff) | |
download | openshift-c5a1fd2b9bc967464962ad5978f9db948a247211.tar.gz openshift-c5a1fd2b9bc967464962ad5978f9db948a247211.tar.bz2 openshift-c5a1fd2b9bc967464962ad5978f9db948a247211.tar.xz openshift-c5a1fd2b9bc967464962ad5978f9db948a247211.zip |
Ensure install and remove are mutually exclusive via
openshift_sanitize_inventory
-rw-r--r-- | roles/openshift_sanitize_inventory/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/openshift_sanitize_inventory/tasks/main.yml b/roles/openshift_sanitize_inventory/tasks/main.yml index a6c168bc7..70b236033 100644 --- a/roles/openshift_sanitize_inventory/tasks/main.yml +++ b/roles/openshift_sanitize_inventory/tasks/main.yml @@ -69,3 +69,21 @@ - openshift_clusterid is not defined - openshift_cloudprovider_kind is defined - openshift_cloudprovider_kind == 'aws' + +- name: Ensure ansible_service_broker_remove and ansible_service_broker_install are mutually exclusive + fail: + msg: > + Ensure ansible_service_broker_remove and ansible_service_broker_install are mutually exclusive, + do not set both to true. ansible_service_broker_install defaults to true. + when: + - ansible_service_broker_remove | default(false) | bool + - ansible_service_broker_install | default(true) | bool + +- name: Ensure template_service_broker_remove and template_service_broker_install are mutually exclusive + fail: + msg: > + Ensure that template_service_broker_remove and template_service_broker_install are mutually exclusive, + do not set both to true. template_service_broker_remove defaults to true. + when: + - template_service_broker_remove | default(false) | bool + - template_service_broker_install | default(true) | bool |