Created
April 4, 2016 05:06
-
-
Save aeosys/25ea7720414f778cfb0b09d8263fd42a to your computer and use it in GitHub Desktop.
Jenkins js slave
This file contains hidden or 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
--- | |
- hosts: all | |
become: true | |
tasks: | |
- name: Add apt repo for Node.js | |
shell: curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - | |
- name: Ensure apt has updated cache | |
apt: update_cache=yes | |
- name: Ensure git is installed | |
apt: name=git state=present | |
- name: Ensure Node.js is installed | |
apt: name=nodejs state=present | |
- name: Ensure Java is installed | |
apt: name=default-jre state=present | |
- name: Install karma Node.js package | |
npm: name=karma global=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment