mirror of
https://github.com/kasmtech/ansible
synced 2024-12-04 17:19:11 +00:00
KASM-3589 Specify the guac ip during registration
This commit is contained in:
parent
b965f5a639
commit
c8f10542a0
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue