# file: roles/build-docker/tasks/main.yml
---
- name: install dependencies
  shell: apt-get install -y curl leiningen ghc cabal-install libzmq3-dev libffi-dev

- name: set LEIN_ROOT
  shell: export LEIN_ROOT=1

- name: upgrade leininge
  shell: lein upgrade

- name: configure datastax repository
  shell: echo "deb http://pacotes.linux.locaweb.com.br/cassandra stable main" > /etc/apt/sources.list.d/cassandra.sources.list

- name: install cassandra
  shell: apt-get update; apt-get install -y dsc20

- name: install consul
  shell: wget https://dl.bintray.com/mitchellh/consul/0.3.1_linux_amd64.zip -O /tmp/consul.zip; unzip /tmp/consul.zip -d /usr/local/bin

- name: build blackbox
  shell: roles/build-native/files/build-blackbox.sh

- name: build warpdrive
  shell: roles/build-native/files/build-warpdrive.sh

# file: roles/build-docker/tasks/main.yml
---
- name: install dependencies
  shell: apt-get install -y --allow-unauthenticated curl leiningen ghc cabal-install libzmq3-dev libffi-dev

- name: set LEIN_ROOT
  shell: export LEIN_ROOT=1

- name: upgrade leininge
  shell: lein upgrade

- name: configure datastax repository
  shell: echo "deb http://pacotes.linux.locaweb.com.br/cassandra stable main" > /etc/apt/sources.list.d/cassandra.sources.list

- name: install cassandra
  shell: apt-get update; apt-get install -y --allow-unauthenticated dsc20

- name: install consul
  shell: wget https://dl.bintray.com/mitchellh/consul/0.3.1_linux_amd64.zip -O /tmp/consul.zip; unzip /tmp/consul.zip -d /usr/local/bin

- name: build blackbox
  shell: roles/build-native/files/build-blackbox.sh

- name: build warpdrive
  shell: roles/build-native/files/build-warpdrive.sh

Add --allow-unauthenticated option to build-native's apt-gets.
Add --allow-unauthenticated option to build-native's apt-gets.
