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
Evangelos Foutras 578b781966
Capitalize the handler name in handler invocations
Fixes: 26f289b72bfb ("Capitalize the first letter of all task names")
2022-08-29 21:46:39 +03:00

20 lines
634 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