ansible-role-k3s/tasks/main.yml

12 lines
329 B
YAML
Raw Normal View History

2019-03-09 21:54:44 +01:00
---
2020-10-17 19:26:30 +02:00
- name: Check to see if k3s_state is a supported value
assert:
that:
2020-10-17 19:26:30 +02:00
- 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
2020-10-17 19:26:30 +02:00
- include_tasks: state-{{ (k3s_state | lower) | default('installed') }}.yml