2020-01-11 20:20:52 +01:00
|
|
|
---
|
2020-11-29 21:10:42 +01:00
|
|
|
|
2020-01-11 20:20:52 +01:00
|
|
|
- name: Converge
|
|
|
|
hosts: node*
|
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
molecule_is_test: true
|
2020-01-12 13:50:03 +01:00
|
|
|
k3s_control_node_address: loadbalancer
|
2020-10-22 20:26:15 +02:00
|
|
|
k3s_server:
|
|
|
|
datastore-endpoint: "postgres://postgres:verybadpass@database:5432/postgres?sslmode=disable"
|
2020-01-11 20:20:52 +01: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-01-11 20:20:52 +01:00
|
|
|
k3s_control_node: true
|
2020-01-11 23:42:29 +01:00
|
|
|
when: inventory_hostname in ['node2', 'node3']
|
2020-01-11 20:20:52 +01:00
|
|
|
roles:
|
|
|
|
- role: xanmanning.k3s
|