Fixed control nodes to match nginx template in test

This commit is contained in:
Xan Manning 2020-01-13 21:53:33 +00:00
parent e3ce213bc0
commit c5b6dcd7fa
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
galaxy_info:
role_name: k3s
author: Xan Manning
description: Ansible role for installing k3s as either a standalone server or cluster
description: Ansible role for installing k3s as either a standalone server or HA cluster
company: Pyrat Ltd.
# If the issue tracker for your role is not on github, uncomment the

View file

@ -7,11 +7,11 @@
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"
- "molecule/highavailability/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']
when: inventory_hostname in ['node2', 'node3']
roles:
- role: xanmanning.k3s