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
|
2021-03-14 17:29:14 +01:00
|
|
|
k3s_registration_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:
|
2021-02-16 16:46:01 +01:00
|
|
|
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|