Merge pull request #15 from PyratLabs/tidy_up_additional_validation

Variable check for local storage path
This commit is contained in:
Xan Manning 2020-02-28 07:39:33 +00:00 committed by GitHub
commit 2c09d4711b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,3 +205,11 @@
success_msg: "--datastore-endpoint supported in {{ k3s_release_version }}"
fail_msg: "--datastore-endpoint not supported in {{ k3s_release_version }}"
when: k3s_datastore_keyfile is defined and k3s_datastore_keyfile
- name: Check k3s_default_local_storage_path against k3s version
assert:
that:
- (k3s_release_version | replace('v', '')) is version_compare('1.0.0', '>=')
success_msg: "Local storage path supported in {{ k3s_release_version }}"
fail_msg: "Local storage path are not supported in {{ k3s_release_version }}"
when: k3s_default_local_storage_path is defined and k3s_default_local_storage_path