gunicorn: Remove obsolete role

This commit is contained in:
Timo Makinen 2022-02-24 21:45:58 +00:00
parent 9c083ebb81
commit 9163364608
3 changed files with 0 additions and 69 deletions

View file

@ -1,16 +0,0 @@
[Unit]
Description=Gunicorn Service
After=nss-user-lookup-target
[Service]
PIDFile=/run/gunicorn/%i.pid
User=%i
Group=%i
ExecStart=/usr/bin/gunicorn --pid /run/gunicorn/%i.pid \
--bind unix:/run/gunicorn/%i.sock %i
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
Also=gunicorn@%i.socket

View file

@ -1,11 +0,0 @@
[Unit]
Description=Gunicorn Socket
[Socket]
ListenStream=/run/gunicorn/gunicorn-%i.sock
RuntimeDirectory=gunicorn
SocketUser=%i
SocketMode=0660
[Install]
WantedBy=sockets.target

View file

@ -1,42 +0,0 @@
---
- name: create gunicorn group
group:
name: gunicorn
system: true
- name: install gunicorn packages
package:
name: python-gunicorn
state: installed
- name: create runtime directory
file:
dest: /run/gunicorn
state: directory
mode: 0775
owner: root
group: gunicorn
- name: create tmpfiles config
copy:
dest: /etc/tmpfiles.d/gunicorn.conf
content: "d /run/gunicorn 775 root gunicorn\n"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: create systemd socket template
copy:
dest: /lib/systemd/system/gunicorn@.socket
src: gunicorn.socket
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: create systemd service template
copy:
dest: /lib/systemd/system/gunicorn@.service
src: gunicorn.service
mode: 0644
owner: root
group: "{{ ansible_wheel }}"