[helloworld] Fix uWSGI configuration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
6d418d020d
commit
bd4d92e19f
|
@ -147,8 +147,8 @@
|
|||
|
||||
- name: Copy uWSGI app
|
||||
template:
|
||||
src: "uwsgi/apps-available/printer.ini.j2"
|
||||
dest: "/etc/uwsgi/apps-available/printer.ini"
|
||||
src: "uwsgi/apps-available/django-printer.ini.j2"
|
||||
dest: "/etc/uwsgi/apps-available/django-printer.ini"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
@ -156,8 +156,8 @@
|
|||
|
||||
- name: Activate uWSGI app
|
||||
file:
|
||||
src: "../apps-available/printer.ini"
|
||||
dest: "/etc/uwsgi/apps-enabled/printer.ini"
|
||||
src: "../apps-available/django-printer.ini"
|
||||
dest: "/etc/uwsgi/apps-enabled/django-printer.ini"
|
||||
owner: root
|
||||
group: root
|
||||
state: link
|
||||
|
@ -173,8 +173,15 @@
|
|||
group: www-data
|
||||
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
|
||||
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
|
||||
|
||||
- name: Indicate module in motd
|
||||
|
|
Loading…
Reference in New Issue