1
0
Fork 0
mirror of https://github.com/kasmtech/ansible.git synced 2026-07-17 16:46:36 +00:00
kasm-ansible/roles/install_common/tasks/agent_install.yml
Ian Tangney 08fae58593 KASM-2035 Add support for offline installation.
- Instead of downloading the kasm_release tarball to every host directly, we copy it from the ansible host.
- Allow user to put service_images and workspace_images in `install_common/files/` to do an offline install.
- Update readme with new instructions.
2021-11-01 16:32:37 -04:00

17 lines
745 B
YAML

- name: Check connection from agent to webserver
uri:
url: "https://{{ web_ip }}/api/__healthcheck"
timeout: 5
validate_certs: false
register: _result
until: _result.status == 200
retries: 7
delay: 5
- name: Install agent role
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S agent -e -p {{ target_ip }} -m {{ web_ip }} -M {{ manager_token }} {{ '-s ' ~ service_images_copy.dest if service_images_file }} {{ '-w ' ~ workspace_images_copy.dest if workspace_images_file }}"
register: install_output
become: true
retries: 20
delay: 10
until: install_output is success or ('Failed to lock apt for exclusive operation' not in install_output.stderr and '/var/lib/dpkg/lock' not in install_output.stderr)