mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-13 08:50:20 +01:00
11 lines
329 B
YAML
11 lines
329 B
YAML
---
|
|
|
|
- name: Check to see if k3s_state is a supported value
|
|
assert:
|
|
that:
|
|
- k3s_state in k3s_valid_states
|
|
fail_msg: "k3s_state not valid. Check README.md for details."
|
|
success_msg: "k3s_state is valid."
|
|
when: k3s_state is defined
|
|
|
|
- include_tasks: state-{{ (k3s_state | lower) | default('installed') }}.yml
|