forked from sixtyeight/kassomat-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision_vagrant.yml
37 lines (31 loc) · 1.06 KB
/
provision_vagrant.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- hosts: all
sudo: yes
tasks:
- name: link /home/vagrant/kassomat -> /vagrant
file: src=/vagrant
dest=/home/vagrant/kassomat
state=link
# update / install packages
- apt: update_cache=yes
- apt: pkg=usbutils
- apt: pkg=virtualbox-guest-dkms
# the message broker used by all kassomat components
- apt: pkg=redis-server
- apt: pkg=redis-tools
# these packages are needed to compile Payout
- apt: pkg=build-essential
- apt: pkg=libhiredis-dev
- apt: pkg=libevent-dev
- apt: pkg=libjansson-dev
- apt: pkg=uuid-dev
# those are needed to build the Changeomatic and the PayoutSimulator
- apt: pkg=openjdk-8-jdk
- apt: pkg=maven
# and these are needed for the kassomat maintenance application
- apt: pkg=python-dev
- apt: pkg=python-pip
- pip: requirements=/vagrant/requirements.txt
# set the default directory to /home/vagrant/kassomat
- lineinfile: dest=/home/vagrant/.bashrc
line='cd /home/vagrant/kassomat'