mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-29 12:55:51 +01:00
21 lines
494 B
YAML
21 lines
494 B
YAML
---
|
|
|
|
- name: Converge
|
|
hosts: node*
|
|
become: true
|
|
vars:
|
|
molecule_is_test: true
|
|
k3s_use_experimental: true
|
|
k3s_etcd_datastore: true
|
|
k3s_server:
|
|
secrets-encryption: true
|
|
k3s_agent:
|
|
node-ip: "{{ ansible_default_ipv4.address }}"
|
|
snapshotter: native
|
|
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 }}"
|