From 916336460820ead8a5758af5de94d16716a52627 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 24 Feb 2022 21:45:58 +0000 Subject: [PATCH] gunicorn: Remove obsolete role --- roles/gunicorn/files/gunicorn.service | 16 ---------- roles/gunicorn/files/gunicorn.socket | 11 ------- roles/gunicorn/tasks/main.yml | 42 --------------------------- 3 files changed, 69 deletions(-) delete mode 100644 roles/gunicorn/files/gunicorn.service delete mode 100644 roles/gunicorn/files/gunicorn.socket delete mode 100644 roles/gunicorn/tasks/main.yml diff --git a/roles/gunicorn/files/gunicorn.service b/roles/gunicorn/files/gunicorn.service deleted file mode 100644 index 9ad0e5c..0000000 --- a/roles/gunicorn/files/gunicorn.service +++ /dev/null @@ -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 diff --git a/roles/gunicorn/files/gunicorn.socket b/roles/gunicorn/files/gunicorn.socket deleted file mode 100644 index 8849715..0000000 --- a/roles/gunicorn/files/gunicorn.socket +++ /dev/null @@ -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 diff --git a/roles/gunicorn/tasks/main.yml b/roles/gunicorn/tasks/main.yml deleted file mode 100644 index c2a02e9..0000000 --- a/roles/gunicorn/tasks/main.yml +++ /dev/null @@ -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 }}"