Skip to content

Instantly share code, notes, and snippets.

@erochest
Created April 7, 2014 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erochest/10026225 to your computer and use it in GitHub Desktop.
Save erochest/10026225 to your computer and use it in GitHub Desktop.
An Ansible playbook to set up a [Neatline](http://neatline.org/) development environment in `/var/www/omeka/plugins/Neatline`. Plus `ag`. It builds on https://github.com/erochest/ansible-omeka.
---
- hosts: all
tasks:
- name: install software-properties-common
apt: pkg={{ item }} state=latest
sudo: true
with_items:
- python-apt
- python-pycurl
- software-properties-common
- name: add ppa:chris-lea/node.js
apt_repository: repo='ppa:chris-lea/node.js' update_cache=yes
sudo: true
- name: install node
apt: pkg={{ item }} state=latest
sudo: true
with_items:
- python-software-properties
- python
- g++
- make
- nodejs
- phantomjs
- name: install js tools
npm: name={{ item }} global=yes
sudo: true
with_items:
- grunt-cli
- bower
- name: install js dependencies
npm: path=/var/www/omeka/plugins/Neatline
- name: install js packages
shell: bower install chdir=/var/www/omeka/plugins/Neatline
- name: install phptools
apt: pkg={{ item }} state=latest
sudo: true
with_items:
- php5-xdebug
- name: install composer
shell: curl -sS https://getcomposer.org/installer | php
chdir=/var/www/omeka/plugins/Neatline
creates=/var/www/omeka/plugins/Neatline/composer.phar
- name: install php dependencies
shell: php composer.phar install chdir=/var/www/omeka/plugins/Neatline
- name: install build utils
apt: pkg={{ item }} state=latest
sudo: true
with_items:
- automake
- pkg-config
- libpcre3-dev
- zlib1g-dev
- liblzma-dev
- name: clone ag
git: repo=https://github.com/ggreer/the_silver_searcher.git dest=/tmp/ag
- name: build ag
shell: ./build.sh chdir=/tmp/ag
- name: install ag
shell: make install chdir=/tmp/ag
sudo: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment