Created
September 14, 2015 14:30
-
-
Save infovore/0184e30d5aa4e3af1011 to your computer and use it in GitHub Desktop.
Ansible Playbook to provision audiowaveform
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: YOUR_HOST_HERE | |
tasks: | |
- name: Install audiowaveform dependencies | |
apt: pkg={{item}} state=installed | |
with_items: | |
- git-core | |
- make | |
- cmake | |
- gcc | |
- g++ | |
- libmad0-dev | |
- libsndfile1-dev | |
- libgd2-xpm-dev | |
- libboost-filesystem-dev | |
- libboost-program-options-dev | |
- libboost-regex-dev | |
- unzip | |
register: aw_deps_installed | |
- name: Clone audiowaveform repository | |
git: repo=https://github.com/bbcrd/audiowaveform.git | |
dest=/tmp/audiowaveform | |
when: aw_deps_installed|success | |
register: aw_cloned | |
- name: Download GMock | |
get_url: url=https://googlemock.googlecode.com/files/gmock-1.7.0.zip | |
dest=/tmp/audiowaveform/ | |
when: aw_cloned|success | |
register: gmock_downloaded | |
- name: Unzip GMock | |
unarchive: src=/tmp/audiowaveform/gmock-1.7.0.zip dest=/tmp/audiowaveform/ copy=no | |
when: gmock_downloaded|success | |
register: gmock_unzipped | |
- name: Symlink GMock | |
file: src=/tmp/audiowaveform/gmock-1.7.0 dest=/tmp/audiowaveform/gmock state=link | |
when: gmock_unzipped|success | |
register: gmock_symlinked | |
- name: Compile audiowaveform | |
shell: 'cd /tmp/audiowaveform;{{ item }}' | |
with_items: | |
- mkdir build | |
- cd build; cmake .. | |
- cd build; make | |
- cd build; make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment