1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/uwsgi/tasks/main.yml
2016-12-23 20:02:13 -02:00

22 lines
639 B
YAML

---
- name: install uwsgi
pacman: name=uwsgi,uwsgitop state=present
- name: make uwsgi user
user: name=uwsgi shell=/bin/false home=/ createhome=no
- name: configure uwsgi
template: src=emperor.ini.j2 dest=/etc/uwsgi/emperor.ini owner=root group=root mode=0644
notify:
- restart emperor.uwsgi
- name: vassals directory
file: state=directory path=/etc/uwsgi/vassals owner=root group=root mode=0755
- name: create default uwsgi log directory
file: state=directory path=/var/log/uwsgi owner=uwsgi group=http mode=0770
- name: enable and start emperor.uwsgi.service
service: name=emperor.uwsgi enabled=yes state=started