Created
April 7, 2014 18:12
-
-
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.
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 | |
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