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

18 lines
457 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
2020-01-12 13:50:03 +01:00
k3s_control_node_address: loadbalancer
k3s_server:
datastore-endpoint: "postgres://postgres:verybadpass@database:5432/postgres?sslmode=disable"
pre_tasks:
- name: Set each node to be a control node
ansible.builtin.set_fact:
k3s_control_node: true
when: inventory_hostname in ['node2', 'node3']
roles:
- role: xanmanning.k3s