mirror of
https://github.com/kasmtech/ansible
synced 2024-12-05 01:29:24 +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
|
delay: 5
|
||||||
|
|
||||||
- name: Install guac role
|
- 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
|
register: install_output
|
||||||
become: true
|
become: true
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
- set_fact:
|
- set_fact:
|
||||||
db_ip: "{{ hostvars[groups['db'][0]]['ansible_default_ipv4']['address'] }}"
|
db_ip: "{{ hostvars[groups['db'][0]]['ansible_default_ipv4']['address'] }}"
|
||||||
web_ip: "{{ hostvars[groups['web'][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
|
# IP of the host that ansible is being ran against
|
||||||
target_ip: "{{ ansible_default_ipv4.address }}"
|
target_ip: "{{ ansible_default_ipv4.address }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue