[helloworld] Fix uWSGI configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2022-01-19 01:24:29 +01:00
parent 6d418d020d
commit bd4d92e19f
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 12 additions and 5 deletions

View File

@ -147,8 +147,8 @@
- name: Copy uWSGI app - name: Copy uWSGI app
template: template:
src: "uwsgi/apps-available/printer.ini.j2" src: "uwsgi/apps-available/django-printer.ini.j2"
dest: "/etc/uwsgi/apps-available/printer.ini" dest: "/etc/uwsgi/apps-available/django-printer.ini"
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
@ -156,8 +156,8 @@
- name: Activate uWSGI app - name: Activate uWSGI app
file: file:
src: "../apps-available/printer.ini" src: "../apps-available/django-printer.ini"
dest: "/etc/uwsgi/apps-enabled/printer.ini" dest: "/etc/uwsgi/apps-enabled/django-printer.ini"
owner: root owner: root
group: root group: root
state: link state: link
@ -173,8 +173,15 @@
group: www-data group: www-data
mode: u=rwx,g=rwxs,o=rx mode: u=rwx,g=rwxs,o=rx
- name: Clone projet to get documentation sources
git:
repo: 'https://gitlab.adm.crans.org/nounous/django-printer.git'
dest: '/tmp/django-printer'
umask: '002'
version: "{{ printer.version }}"
- name: Build HTML documentation - name: Build HTML documentation
command: "sphinx-build -b dirhtml {{ project_path }}/docs/ /var/www/django-printer-doc/" command: "sphinx-build -b dirhtml /tmp/django-printer/docs/ /var/www/django-printer-doc/"
become_user: www-data become_user: www-data
- name: Indicate module in motd - name: Indicate module in motd