2020-10-19 21:26:12 +02:00
|
|
|
---
|
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- name: Check that k3s_state is a supported value
|
2020-12-12 15:27:59 +01:00
|
|
|
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
|
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- import_tasks: environment/local/packages.yml
|
2021-02-16 16:46:01 +01:00
|
|
|
when:
|
|
|
|
- not k3s_skip_validation
|
|
|
|
- not k3s_skip_env_checks
|
2020-10-22 20:26:15 +02:00
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- include_tasks: environment/remote/packages.yml
|
|
|
|
loop: "{{ k3s_check_packages }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: package
|
2021-02-16 16:46:01 +01:00
|
|
|
when:
|
|
|
|
- k3s_skip_validation
|
|
|
|
- not k3s_skip_env_checks
|
2020-11-29 21:10:42 +01:00
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- include_tasks: environment/local/issue-data.yml
|
2021-02-16 16:46:01 +01:00
|
|
|
when:
|
|
|
|
- pyratlabs_issue_controller_dump is defined
|
|
|
|
- pyratlabs_issue_controller_dump
|