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

42 lines
1.1 KiB
YAML

---
- name: Install dependencies
apt: name={{ item }} state=present
with_items:
- python-flask
- python-flaskext.wtf
- python-ldap
- python-passlib
- python-redis
- redis-server
- uwsgi
#- name: Install bk-dss
# git: repo=https://github.com/moepman/bk-diss.git dest=/var/www/dss depth=1 version=b1e0035e83dcf533610423a1cf4374e6c6dbf3d8
# 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