Browse Source
Fix cloud_provider check (#8164)
This fixes the preinstall check for cloud_provider option based on
inventory/sample/group_vars/all/all.yml
pull/8171/head
Kenichi Omichi
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
|
|
@ -183,8 +183,8 @@ |
|
|
|
|
|
|
|
- name: check cloud_provider value |
|
|
|
assert: |
|
|
|
that: cloud_provider in ['generic', 'gce', 'aws', 'azure', 'openstack', 'vsphere', 'oci', 'external'] |
|
|
|
msg: "If set the 'cloud_provider' var must be set either to 'generic', 'gce', 'aws', 'azure', 'openstack', 'vsphere', or external" |
|
|
|
that: cloud_provider in ['gce', 'aws', 'azure', 'openstack', 'vsphere', 'oci', 'external'] |
|
|
|
msg: "If set the 'cloud_provider' var must be set either to 'gce', 'aws', 'azure', 'openstack', 'vsphere', 'oci' or 'external'" |
|
|
|
when: |
|
|
|
- cloud_provider is defined |
|
|
|
- not ignore_assert_errors |
|
|
|