aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-20 14:05:59 +0800
committerAaron LI <aly@aaronly.me>2018-12-20 14:05:59 +0800
commit67256748a799f15a1eed6073deb07733121885af (patch)
tree4003f49c4f67f3370df3d603e97d92dd1d359a88 /roles
parentf030916aca096f0440d718ff8ea15608fc9af466 (diff)
downloadansible-dfly-vps-67256748a799f15a1eed6073deb07733121885af.tar.bz2
Fix uwsgi socket owner in rc.conf
Diffstat (limited to 'roles')
-rw-r--r--roles/git/tasks/main.yml1
-rw-r--r--roles/radicale/tasks/main.yml1
2 files changed, 2 insertions, 0 deletions
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml
index ebd2ef3..4589ac6 100644
--- a/roles/git/tasks/main.yml
+++ b/roles/git/tasks/main.yml
@@ -176,6 +176,7 @@
uwsgi_profiles="${uwsgi_profiles} cgit"
uwsgi_cgit_uid="git"
uwsgi_cgit_gid="git"
+ uwsgi_cgit_socket_owner="git:www"
uwsgi_cgit_flags="-L --log-reopen --logfile-chown --cgi /usr/local/www/cgit/cgit.cgi --env CGIT_CONFIG={{ git.cgit.root }}/cgitrc"
notify: restart-cgit
diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml
index 032a9d3..70b6330 100644
--- a/roles/radicale/tasks/main.yml
+++ b/roles/radicale/tasks/main.yml
@@ -80,6 +80,7 @@
uwsgi_profiles="${uwsgi_profiles} radicale"
uwsgi_radicale_uid="radicale"
uwsgi_radicale_gid="radicale"
+ uwsgi_radicale_socket_owner="radicale:www"
uwsgi_radicale_flags="-L --log-reopen --logfile-chown --wsgi-file {{ radicale.wwwdir }}/radicale.wsgi --env RADICALE_CONFIG={{ radicale.etcdir }}/config"
- name: enable and start uwsgi