2020-01-13 22:32:31 +01:00
|
|
|
---
|
|
|
|
- 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:
|
2020-01-13 22:53:33 +01:00
|
|
|
- "molecule/highavailability/templates/00-ns-monitoring.yml.j2"
|
2020-01-13 22:32:31 +01:00
|
|
|
pre_tasks:
|
|
|
|
- name: Set each node to be a control node
|
|
|
|
set_fact:
|
|
|
|
k3s_control_node: true
|
2020-01-13 22:53:33 +01:00
|
|
|
when: inventory_hostname in ['node2', 'node3']
|
2020-01-13 22:32:31 +01:00
|
|
|
roles:
|
|
|
|
- role: xanmanning.k3s
|