mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-15 09:50:36 +01:00
17 lines
523 B
YAML
17 lines
523 B
YAML
---
|
|
- name: Converge
|
|
hosts: node*
|
|
become: true
|
|
vars:
|
|
molecule_is_test: true
|
|
k3s_control_node_address: loadbalancer
|
|
k3s_datastore_endpoint: "postgres://postgres:verybadpass@database:5432/postgres?sslmode=disable"
|
|
k3s_server_manifests_templates:
|
|
- "molecule/default/templates/00-ns-monitoring.yml.j2"
|
|
pre_tasks:
|
|
- name: Set each node to be a control node
|
|
set_fact:
|
|
k3s_control_node: true
|
|
when: inventory_hostname in ['node1', 'node2']
|
|
roles:
|
|
- role: xanmanning.k3s
|