1
0
forked from infra/ansible
infra/roles/dss/tasks/main.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

---
- name: Install dependencies
2017-07-02 22:17:32 +02:00
apt: name={{ item }}
with_items:
- python-flask
- python-flaskext.wtf
- python-ldap
- python-passlib
- python-redis
- redis-server
- uwsgi
#- name: Install bk-dss
2017-07-02 22:17:32 +02:00
# git: repo=https://github.com/moepman/bk-diss.git dest=/var/www/dss depth=1 version=ca364a7dd456b7f6060213102d136148784b6a47
# TODO Configure bk-dss
# TODO Configure redis
#- name: Configure uwsgi service
# copy: src={{ item }} dest=/etc/{{ item }}
# with_items:
# - uwsgi/apps-available/dss.ini
# - systemd/system/uwsgi-app@.socket
# - systemd/system/uwsgi-app@.service
# notify: Restart uwsgi-app@dss
#- name: Configure certificate manager for dss
# template: src=certs.j2 dest=/etc/acme/domains.d/{{ dss_domain }}.conf
#- name: Configure vhost
# template: src=vhost.j2 dest=/etc/nginx/sites-available/dss
# notify: Restart nginx
#- name: Enable vhost
# file: src=/etc/nginx/sites-available/dss dest=/etc/nginx/sites-enabled/dss state=link
# notify: Restart nginx
#- name: Start uwsgi
# service: name=uwsgi-app@dss state=started enabled=yes