2020-09-17 22:01:20 +02:00
|
|
|
---
|
2020-11-29 21:10:42 +01:00
|
|
|
|
2020-09-17 22:01:20 +02:00
|
|
|
- name: Converge
|
|
|
|
hosts: node*
|
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
molecule_is_test: true
|
|
|
|
k3s_use_experimental: true
|
2020-10-23 17:31:21 +02:00
|
|
|
k3s_etcd_datastore: true
|
2020-10-22 20:26:15 +02:00
|
|
|
k3s_server:
|
|
|
|
secrets-encryption: true
|
2021-08-18 21:44:06 +02:00
|
|
|
k3s_agent:
|
|
|
|
node-ip: "{{ ansible_default_ipv4.address }}"
|
2021-12-19 00:04:24 +01:00
|
|
|
snapshotter: native
|
2022-05-03 20:02:02 +02:00
|
|
|
k3s_skip_validation: "{{ k3s_service_handler[ansible_service_mgr] == 'service' }}"
|
2020-09-17 22:01:20 +02:00
|
|
|
pre_tasks:
|
|
|
|
- name: Set each node to be a control node
|
2020-12-21 20:14:52 +01:00
|
|
|
ansible.builtin.set_fact:
|
2020-09-17 22:01:20 +02:00
|
|
|
k3s_control_node: true
|
|
|
|
roles:
|
2021-02-16 16:46:01 +01:00
|
|
|
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|