Skip to content

Instantly share code, notes, and snippets.

@knewter
Created August 18, 2014 14:23
Show Gist options
  • Save knewter/4fbdf75ed71b471dbdef to your computer and use it in GitHub Desktop.
Save knewter/4fbdf75ed71b471dbdef to your computer and use it in GitHub Desktop.
elixir ansible deploy
---
- name: Create directory to put elixir in
sudo: 'yes'
shell: "mkdir -p /opt/elixir/v0.15.0"
- name: Install unzip
apt: name=unzip state=present update_cache=true
- name: Unzip elixir release
sudo: 'yes'
unarchive: src=files/elixir-v0.15.0.zip dest=/opt/elixir/v0.15.0
---
- name: Add erlang solutions gpg key
apt_key: url=http://packages.erlang-solutions.com/debian/erlang_solutions.asc state=present
- name: Add erlang solutions repo
apt_repository: repo='deb http://packages.erlang-solutions.com/debian wheezy contrib' state=present
- name: Install Erlang
apt: name=erlang state=present update_cache=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment