Quick ansible playbook to install locally these requirements:
- Wetty via docker container (listen port 3000)
- Nginx reverse proxy with TLS termination (self-signed) for Wetty
- Reconfigure SSH to use docker as an jailed environment
- Creates group
jailed
and users fromssh_jailed_users
variable- users expire within 24 hours
- users with group
jailed
will connect to unprivileged docker container - Set inital password of $USERNAME concat with initial_password_suffix variable (i.e.
maxStart123
).
Entrypoint is the ./bootstrap.sh
file to install dependencies (i.e. ansible and galaxy roles) and start the playbook.
After the login of your students, you can execute ansible-playbook docker-ping.yml
in order verifiy the running docker container.
This playbook can be used as an example to rollout further training materials.