Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ansible-roles
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jocelyn Delalande
ansible-roles
Commits
37074c1b
Commit
37074c1b
authored
Jan 07, 2018
by
Jocelyn Delalande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jupyterhub: get node/npm from nodesource
parent
c8a296a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
2 deletions
+54
-2
jupyterhub/tasks/main.yml
jupyterhub/tasks/main.yml
+9
-2
jupyterhub/tasks/nodesource.yml
jupyterhub/tasks/nodesource.yml
+40
-0
jupyterhub/templates/deb_nodesource_com_node.pref.j2
jupyterhub/templates/deb_nodesource_com_node.pref.j2
+5
-0
No files found.
jupyterhub/tasks/main.yml
View file @
37074c1b
# This first task is actually required by ijavascript
# to get a recent version of node (jessie-backports contains one, but with no
# npm…)
# Seems un-needed on strecth (but not tested)
-
name
:
Install node from nodesource as ijs wont run with node 0.10x
include
:
nodesource.yml
-
name
:
install apt dependencies
apt
:
pkg={{ item }} update_cache=yes cache_valid_time=1800
with_items
:
-
npm
-
nodejs-legacy
#- npm # Taken care by nodesource step
#- nodejs-legacy # Taken care by nodesource step
-
virtualenv
-
python3-dev
...
...
jupyterhub/tasks/nodesource.yml
0 → 100644
View file @
37074c1b
# Install Node.js using packages crafted by NodeSource
# After https://github.com/nodesource/ansible-nodejs-role, MIT License
---
-
name
:
Ensure the system can use the HTTPS transport for APT
stat
:
path
:
/usr/lib/apt/methods/https
register
:
apt_https_transport
-
name
:
Install HTTPS transport for APT
apt
:
pkg
:
apt-transport-https
state
:
installed
when
:
not apt_https_transport.stat.exists
-
name
:
Import the NodeSource GPG key into apt
apt_key
:
url
:
https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
id
:
"
68576280"
state
:
present
-
name
:
Add NodeSource deb repository
apt_repository
:
repo
:
'
deb
https://deb.nodesource.com/node_4.x
{{
ansible_distribution_release
}}
main'
state
:
present
-
name
:
Add NodeSource deb-src repository
apt_repository
:
repo
:
'
deb-src
https://deb.nodesource.com/node_4.x
{{
ansible_distribution_release
}}
main'
state
:
present
-
name
:
Add NodeSource repository preferences
template
:
src
:
deb_nodesource_com_node.pref.j2
dest
:
/etc/apt/preferences.d/deb_nodesource_com_node.pref
-
name
:
Install Node.js
apt
:
pkg
:
nodejs
state
:
installed
update_cache
:
yes
\ No newline at end of file
jupyterhub/templates/deb_nodesource_com_node.pref.j2
0 → 100644
View file @
37074c1b
# {{ ansible_managed }}
Package: *
Pin: release o=Node Source
Pin-Priority: 500
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment