Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
raspberry-pi-setup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PSE - AI at the Edge
raspberry-pi-setup
Commits
6dbe96e6
Commit
6dbe96e6
authored
3 years ago
by
Daniel Müller
Browse files
Options
Downloads
Patches
Plain Diff
Extra optional step for jupyterlab autostart
parent
f3036c30
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-1
2 additions, 1 deletion
README.md
local.yml
+2
-1
2 additions, 1 deletion
local.yml
roles/jupyter-lab/tasks/main.yml
+8
-1
8 additions, 1 deletion
roles/jupyter-lab/tasks/main.yml
with
12 additions
and
3 deletions
README.md
+
2
−
1
View file @
6dbe96e6
...
...
@@ -48,8 +48,9 @@ The configurable options are the following:
| Variable name | Default value | Description |
|:----------------------|:--------------|:------------|
| target_user | pi | Setup for a specified user |
| jupyter_service | true | Setup a systemd service
to autostart jupyterlab
in the background |
| jupyter_service | true | Setup a systemd service
for running
in the background |
| jupyter_start | true | Don't start jupyterlab directly |
| jupyter_autostart | true | Set the jupyterlab service to autostart |
| ignore_python_version | false | Ignore the python version check (
**not recommended**
) |
| ignore_architecture | false | Ignore the architecture check (
**not recommended**
) |
...
...
This diff is collapsed.
Click to expand it.
local.yml
+
2
−
1
View file @
6dbe96e6
...
...
@@ -2,9 +2,10 @@
-
hosts
:
localhost
vars
:
target_user
:
pi
jupyter_service
:
true
ignore_python_version
:
false
ignore_architecture
:
false
jupyter_service
:
true
jupyter_autostart
:
true
jupyter_start
:
true
pre_tasks
:
...
...
This diff is collapsed.
Click to expand it.
roles/jupyter-lab/tasks/main.yml
+
8
−
1
View file @
6dbe96e6
...
...
@@ -25,11 +25,18 @@
mode
:
'
0644'
when
:
jupyter_service
-
name
:
Make systemd service autostart
become
:
true
file
:
src
:
/etc/systemd/system/jupyter.service
dest
:
/etc/systemd/system/multi-user.target.wants/jupyter.service
state
:
link
when
:
jupyter_service and jupyter_autostart
-
name
:
Start Jupyter-Lab service
become
:
true
systemd
:
name
:
jupyter
state
:
started
enabled
:
true
daemon_reload
:
true
when
:
jupyter_service and jupyter_start
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment