forked from whtsky/maga
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.yml
38 lines (38 loc) · 1.09 KB
/
init.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
38
- hosts: all
remote_user: root
tasks:
- name: aptitude
apt: name=aptitude state=installed
- name: apt-get update && apt-get upgrade
apt: update_cache=yes upgrade=yes
ignore_errors: yes
- name: install list of packages
apt: name={{item}} state=installed
with_items:
- python3
- python3-dev
- python3-venv
- python3-wheel
- python3-pip
- build-essential
- libuv-dev
- redis-server
- screen
- git
- bc
- psutils
ignore_errors: yes
- name: install redis config
copy: src=./redis.conf dest=/etc/redis/redis.conf owner=redis
ignore_errors: yes
- name: restart redis
service: name=redis state=restarted
ignore_errors: yes
- name: build python venv
command: pyvenv-3.5 /root/mana_venv
- name: checkout git
git: repo="https://github.com/itdaniher/mana.git" dest=/root/mana
- name: install python requirements
pip: requirements=/root/mana/requirements.txt virtualenv=/root/mana_venv
- name: launch session
shell: screen -d -m bash '/root/mana/launch.sh'