main.yml 639 Bytes
Newer Older
Angel Velasquez's avatar
Angel Velasquez committed
1
2
3
---

- name: install uwsgi
4
  pacman: name=uwsgi,uwsgitop state=present
Angel Velasquez's avatar
Angel Velasquez committed
5

6
7
8
9
10
11
12
13
14
15
16
17
- 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
18
  file: state=directory path=/var/log/uwsgi owner=uwsgi group=http mode=0770
19

20
21
- name: enable and start emperor.uwsgi.service
  service: name=emperor.uwsgi enabled=yes state=started