mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-20 21:23:31 +02:00
roles/patchwork: Change the tasks file to disable the home dir creation and fix uwsgi deploy
Changed the user creation to not create the home directory anymore. Also fixed the uwsgi vassal file owner and permissions, because the deploy was not working.
This commit is contained in:
parent
dc0747715d
commit
77ee85e5b5
@ -13,7 +13,10 @@
|
||||
pacman: name=gcc,git,python,python-psycopg2,sudo,uwsgi-plugin-python,python-pip state=present
|
||||
|
||||
- name: make patchwork user
|
||||
user: name=patchwork shell=/bin/false home="{{ patchwork_dir }}" skeleton=/var/empty
|
||||
user: name=patchwork shell=/bin/false home="{{ patchwork_dir }}" createhome=no
|
||||
|
||||
- name: fix home permissions
|
||||
file: state=directory owner=patchwork group=patchwork mode=0755 path="{{ patchwork_dir }}"
|
||||
|
||||
- name: set patchwork groups
|
||||
user: name=patchwork groups=uwsgi
|
||||
@ -116,9 +119,7 @@
|
||||
template: src=patchwork.ini.j2 dest=/etc/uwsgi/vassals/patchwork.ini owner=patchwork group=http mode=0644
|
||||
|
||||
- name: deploy new release
|
||||
become: true
|
||||
become_user: patchwork
|
||||
file: path=/etc/uwsgi/vassals/patchwork.ini state=touch owner=root group=root mode=0644
|
||||
file: path=/etc/uwsgi/vassals/patchwork.ini state=touch owner=patchwork group=http mode=0644
|
||||
when: (release.changed or config.changed or virtualenv.changed or patchwork_forced_deploy)
|
||||
|
||||
- name: start and enable patchwork memcached service and notification timer
|
||||
|
Loading…
Reference in New Issue
Block a user