2022-11-04 20:58:37 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Converge
|
|
|
|
hosts: node*
|
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
molecule_is_test: true
|
2023-02-17 12:00:24 +01:00
|
|
|
k3s_release_version: "v1.21"
|
2022-11-04 20:58:37 +01:00
|
|
|
k3s_use_experimental: true
|
|
|
|
k3s_etcd_datastore: true
|
|
|
|
k3s_server:
|
|
|
|
secrets-encryption: true
|
|
|
|
k3s_agent:
|
|
|
|
node-ip: "{{ ansible_default_ipv4.address }}"
|
|
|
|
snapshotter: native
|
2023-02-17 12:00:24 +01:00
|
|
|
selinux: "{{ ansible_os_family | lower == 'redhat' }}"
|
2022-11-04 20:58:37 +01:00
|
|
|
k3s_skip_validation: "{{ k3s_service_handler[ansible_service_mgr] == 'service' }}"
|
2023-02-17 12:00:24 +01:00
|
|
|
# k3s_skip_post_checks: "{{ ansible_os_family | lower == 'redhat' }}"
|
2022-11-04 20:58:37 +01:00
|
|
|
pre_tasks:
|
|
|
|
- name: Set each node to be a control node
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
k3s_control_node: true
|
|
|
|
roles:
|
|
|
|
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|