diff options
author | Aaron LI <aly@aaronly.me> | 2018-12-20 14:05:59 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-12-20 14:05:59 +0800 |
commit | 67256748a799f15a1eed6073deb07733121885af (patch) | |
tree | 4003f49c4f67f3370df3d603e97d92dd1d359a88 /roles | |
parent | f030916aca096f0440d718ff8ea15608fc9af466 (diff) | |
download | ansible-dfly-vps-67256748a799f15a1eed6073deb07733121885af.tar.bz2 |
Fix uwsgi socket owner in rc.conf
Diffstat (limited to 'roles')
-rw-r--r-- | roles/git/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/radicale/tasks/main.yml | 1 |
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 |