Skip to content

Instantly share code, notes, and snippets.

@dhrrgn

dhrrgn/phantomjs.yml

Last active Aug 29, 2015
Embed
What would you like to do?
---
- name: Install libfontconfig1
apt: pkg=libfontconfig1 state=installed
- name: Download phantomjs
get_url: url=https://bitbucket.org/ariya/phantomjs/downloads/{{phantomjs.name}}.tar.bz2 dest=/usr/local/share/{{phantomjs.name}}.tar.bz2 validate_certs=no
- name: Unpack phantomjs
command: tar xvjf /usr/local/share/{{phantomjs.name}}.tar.bz2 -C /usr/local/share creates=/usr/local/share/{{phantomjs.name}}
- name: Move phantomjs
command: mv /usr/local/share/{{phantomjs.name}} /usr/local/share/phantomjs creates=/usr/local/share/phantomjs
- name: Link phantomjs
file: src=/usr/local/share/phantomjs/bin/phantomjs dest=/usr/bin/phantomjs state=link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.