Kasm is desktop and browser isolation platform.
This role will search for running Kasm docker containers. If there are not any, role will install Kasm server. Optionally it can create a persistent storage for home folder of 5 users per one server (Community Kasm version allows maximum of 5 user sessions on one server)
- register at https://www.kasmweb.com/downloads.html and download the latest community version of the Kasm Server and place it into
playbooks/files/
directory - define kasm servers in
inventory/hosts.ini
- run
ansible-galaxy install -r inventory/requirements.yml
- run
ansible-playbook site.yml
- see the Kasm credentials in the ansible output. Login into the Kasm server WebUI (output of the installation log is in
~/kasm.log
)...
---
- name: Install KASM server with persistent storage
hosts: kasm_servers
become: yes
gather_facts: no
vars:
- kasm_package: kasm_release_1.5.0.3b363e.tar.gz
- kasm_user_name: user
- display_creds: True
- persistent_storage: True
roles:
- monolithprojects.kasm_server
Login to the Kasm WebUI and create users called <kasm_user_name>[1-5]
(5 users per one Kasm server. For example in case of 2 Kasm servers, create user[1-10]
)
Each user will need it's own Kasm image to have persistent home folder. For each image setup the volume mapping.
Volume Mappings (JSON)
{"/home/<replace for ansible_user>/share/<replace for kasm_user_name+index number>":{"mode":"rw","bind":"/home/kasm-user"}}
- docker
- docker-compose
- swap enabled
- MIT