lighthouse.js/ansible-lighthouse/lighthouse.yml
2017-09-05 21:37:53 +02:00

20 lines
No EOL
1.1 KiB
YAML

- name: Lighthouse - Download lbrycrd
hosts: lighthouse
tasks:
- raw: apt-get update && apt-get install -y wget unzip screen git curl
- raw: cd ~ && wget https://github.com/lbryio/lbrycrd/releases/download/v0.12.0.5/lbrycrd-linux.zip && unzip lbrycrd-linux.zip -d lbrycrd
- raw: cd ~/lbrycrd && screen -S lbrycrd -d -m ./lbrycrdd -server -txindex -reindex -rpcuser=lbry -rpcpassword=lbry && sleep 2
- name: Lighthouse - Install elasticsearch, download and install lighthouse
hosts: lighthouse
roles:
- { role: elasticsearch, es_instance_name: "node1", es_heap_size: "4g" }
- { role: geerlingguy.nodejs, nodejs_version: "8.x" }
- { role: yarn }
- { role: bobbyrenwick.pip }
tasks:
- git: repo=https://github.com/lbryio/lighthouse.git dest=~/lighthouse
- raw: cd ~/lighthouse/ && ./gendb.sh
- raw: cd ~/lighthouse/decoder && pip install -r requirements.txt && screen -S decoder -d -m python decoder.py && sleep 2
- raw: cd ~/lighthouse && yarn install --production=false && yarn global add forever
- raw: cd ~/lighthouse && yarn run build && cd dist && forever start index.js