From c8f10542a0a75d5d92f82178d1a33cbcb1275365 Mon Sep 17 00:00:00 2001 From: Justin Travis Date: Wed, 16 Nov 2022 19:32:30 -0500 Subject: [PATCH] KASM-3589 Specify the guac ip during registration --- roles/install_common/tasks/guac_install.yml | 2 +- roles/install_common/tasks/main.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/install_common/tasks/guac_install.yml b/roles/install_common/tasks/guac_install.yml index e168080..241c4f1 100644 --- a/roles/install_common/tasks/guac_install.yml +++ b/roles/install_common/tasks/guac_install.yml @@ -9,7 +9,7 @@ delay: 5 - name: Install guac role - command: "bash {{ tempdir.path }}/kasm_release/install.sh -S guac -e --api-hostname {{ web_ip }} --registration-token {{ registration_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }}" + command: "bash {{ tempdir.path }}/kasm_release/install.sh -S guac -e --api-hostname {{ web_ip }} --public-hostname {{ guac_ip }} --registration-token {{ registration_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }}" register: install_output become: true retries: 20 diff --git a/roles/install_common/tasks/main.yml b/roles/install_common/tasks/main.yml index 639ef2e..272939d 100644 --- a/roles/install_common/tasks/main.yml +++ b/roles/install_common/tasks/main.yml @@ -12,6 +12,7 @@ - set_fact: db_ip: "{{ hostvars[groups['db'][0]]['ansible_default_ipv4']['address'] }}" web_ip: "{{ hostvars[groups['web'][0]]['ansible_default_ipv4']['address'] }}" + guac_ip: "{{ hostvars[groups['guac'][0]]['ansible_default_ipv4']['address'] }}" # IP of the host that ansible is being ran against target_ip: "{{ ansible_default_ipv4.address }}"