mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-15 10:45:12 +01:00
12 lines
438 B
YAML
12 lines
438 B
YAML
---
|
|
|
|
- name: Check to see if k3s_cluster_state is a supported value
|
|
assert:
|
|
that:
|
|
- k3s_cluster_state in ['installed', 'started', 'stopped', 'restarted', 'downloaded', 'uninstalled']
|
|
fail_msg: "k3s_cluster_state not valid. Check README.md for details."
|
|
success_msg: "k3s_cluster_state is valid."
|
|
when: k3s_cluster_state is defined
|
|
|
|
- include_tasks: state-{{ (k3s_cluster_state | lower) | default('installed') }}.yml
|