ansible-role-k3s/molecule/highavailabilityetcd/converge.yml

22 lines
581 B
YAML
Raw Normal View History

---
2020-11-29 21:10:42 +01: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
k3s_server:
secrets-encryption: true
2021-08-18 21:44:06 +02:00
k3s_agent:
node-ip: "{{ ansible_default_ipv4.address }}"
snapshotter: native
k3s_skip_validation: "{{ k3s_service_handler[ansible_service_mgr] == 'service' }}"
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 }}"