-
Notifications
You must be signed in to change notification settings - Fork 1
/
playbook.yaml
36 lines (36 loc) · 897 Bytes
/
playbook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- name: Set up Jupyterhub server
hosts: all
become: yes
vars:
jupyter_path: /opt/jupyterhub
tasks:
- name: Add jupyter admin user
include_role:
name: regular_user
vars_from: secrets # Add variable `default_password`
vars:
user: jupyter
- name: Install and configure Jupyterhub
include_role:
name: jupyterhub
vars:
admin_user: jupyter
- name: Install and configure Conda
include_role:
name: conda
- name: Install and configure Nginx
include_role:
name: nginx
vars:
nginx_conf: nginx_jupyterhub_conf
- name: Add new user(s) to Jupyterhub
tags: add_user
include_role:
name: jupyterhub
tasks_from: add_user
apply:
tags: add_user
with_items: '{{ new_users }}'
loop_control:
loop_var: new_user