From 4ea9492ca33527e2d02ab750d1d7981f9c48a41d Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 10 Jan 2023 09:46:01 +0100 Subject: [PATCH] Change hos group-name --- netmaker_server/tasks/netmaker.yml | 4 ++-- netmaker_server/templates/docker-compose.yml.template | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/netmaker_server/tasks/netmaker.yml b/netmaker_server/tasks/netmaker.yml index fe4f3e4..56eed6f 100644 --- a/netmaker_server/tasks/netmaker.yml +++ b/netmaker_server/tasks/netmaker.yml @@ -30,7 +30,7 @@ headers: Authorization: 'Bearer {{ netmaker_creds.master_key }}' Content-Type: application/json - when: "inventory_hostname == groups['netmaker'][0]" + when: "inventory_hostname == groups['netmaker_server'][0]" register: default_mesh until: "default_mesh is not failed" retries: 2 @@ -50,7 +50,7 @@ headers: Authorization: 'Bearer {{ netmaker_creds.master_key }}' Content-Type: application/json - when: "inventory_hostname == groups['netmaker'][0]" + when: "inventory_hostname == groups['netmaker_server'][0]" register: default_mesh_key until: "default_mesh_key is not failed" retries: 2 diff --git a/netmaker_server/templates/docker-compose.yml.template b/netmaker_server/templates/docker-compose.yml.template index 5a242eb..f01005c 100644 --- a/netmaker_server/templates/docker-compose.yml.template +++ b/netmaker_server/templates/docker-compose.yml.template @@ -33,9 +33,9 @@ services: -auth /config.json -{% if inventory_hostname != groups['netmaker'][0] %} +{% if inventory_hostname != groups['netmaker_server'][0] %} -join-as netmaker - -join https://{{ netmaker_rqlite.http_host }}.{{ groups['netmaker'][0] }}:{{ netmaker_nginx.advertise_port }} + -join https://{{ netmaker_rqlite.http_host }}.{{ groups['netmaker_server'][0] }}:{{ netmaker_nginx.advertise_port }} {% endif %} " # FIXME: /\ \/ Change http -> https