Commit 563a9649 authored by rexxnor's avatar rexxnor

updated urls and fixed bug in playbook

parent 2df798cd
......@@ -33,11 +33,6 @@
file:
dest: /etc/apache2/sites-enabled/default-ssl.conf
state: absent
- name: Restarting apache and enabling it
systemd:
name: apache2
state: restarted
enabled: yes
- name: Activate apache2 site for Prepaidmate
file:
src: /etc/apache2/sites-available/prepaidmate.conf
......@@ -49,6 +44,10 @@
owner: www-data
group: www-data
recurse: yes
- name: Creating the apache run directory if it does not exist
file:
dest: /var/run/apache2/
state: directory
- name: Generating run secret with script
shell: bash gen_safe_secret.sh
args:
......@@ -71,7 +70,13 @@
virtualenv: /var/www/prepaidmatevenv/
command: migrate
app_path: /var/www/html/ppm/prepaidmatewebsite/
- name: Restarting apache and enabling it
- name: Ensuring correct file access rights for /var/www/html
file:
dest: /var/www/html/
owner: www-data
group: www-data
recurse: yes
- name: Reloading apache and enabling it
systemd:
name: apache2
state: reloaded
......
ServerRoot /var/www/html
WSGIScriptAlias / /var/www/html/ppm/prepaidmatewebsite/prepaidmatewebsite/wsgi.py
WSGIPythonHome /var/www/prepaidmatevenv/
WSGIPythonPath /var/www/html/ppm/prepaidmatewebsite
WSGIDaemonProcess {{ ansible_eth0.ipv4.address }} python-home=/var/www/prepaidmatevenv/ python-path=/var/www/html/ppm/prepaidmatewebsite/
WSGIProcessGroup {{ ansible_eth0.ipv4.address }}
Alias /static/ /var/www/html/ppm/prepaidmatewebsite/prepaid/static
Alias /static/ /var/www/html/ppm/prepaidmatewebsite/prepaid/static/
<VirtualHost *:80>
DocumentRoot /var/www/html
<Directory /var/www/html/ppm/prepaidmatewebsite/prepaidmatewebsite>
<Directory "/var/www/html/ppm/prepaidmatewebsite/prepaidmatewebsite">
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory /var/www/html/ppm/prepaidmatewebsite/prepaid/static>
<Directory "/var/www/html/ppm/prepaidmatewebsite/prepaid/static">
Require all granted
</Directory>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment