ansible-role-k3s/tasks/validate/pre-flight.yml

18 lines
502 B
YAML
Raw Normal View History

2020-10-19 21:26:12 +02:00
---
- name: Check to see if k3s_state is a supported value
ansible.builtin.assert:
2020-10-19 21:26:12 +02:00
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
- import_tasks: generate-check-config.yml
2020-10-19 21:26:12 +02:00
- import_tasks: check-environment.yml
when: not k3s_skip_validation
2020-11-29 21:10:42 +01:00
- include_tasks: issue-data.yml
when: pyratlabs_issue_controller_dump is defined and pyratlabs_issue_controller_dump