-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from mmoll/ansible2
Update playbook for recent ansible versions
- Loading branch information
Showing
3 changed files
with
50 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
# NodeJS repository handling and installation | ||
|
||
- name: Ensure apt-transport-https is installed. | ||
apt: name=apt-transport-https state=present | ||
become: yes | ||
|
||
- name: Add Nodesource apt key. | ||
apt_key: | ||
url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280 | ||
id: "68576280" | ||
state: present | ||
become: yes | ||
|
||
- name: Add NodeSource repositories for Node.js. | ||
apt_repository: | ||
repo: "deb https://deb.nodesource.com/node_6.x {{ ansible_distribution_release }} main" | ||
state: present | ||
become: yes | ||
|
||
- name: Ensure Node.js is installed (The Nodesource package also contains npm) | ||
apt: name=nodejs state=present | ||
become: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters