mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2025-01-07 18:20:19 +01:00
Merge pull request #15 from PyratLabs/tidy_up_additional_validation
Variable check for local storage path
This commit is contained in:
commit
2c09d4711b
1 changed files with 8 additions and 0 deletions
|
@ -205,3 +205,11 @@
|
||||||
success_msg: "--datastore-endpoint supported in {{ k3s_release_version }}"
|
success_msg: "--datastore-endpoint supported in {{ k3s_release_version }}"
|
||||||
fail_msg: "--datastore-endpoint not 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
|
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
|
||||||
|
|
Loading…
Reference in a new issue