Skip to content

Instantly share code, notes, and snippets.

@aeosys
Created April 4, 2016 05:06
Show Gist options
  • Save aeosys/25ea7720414f778cfb0b09d8263fd42a to your computer and use it in GitHub Desktop.
Save aeosys/25ea7720414f778cfb0b09d8263fd42a to your computer and use it in GitHub Desktop.
Jenkins js slave
---
- 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