Skip to content
Snippets Groups Projects
Commit 6306e71c authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

test to add a host-specific django settings file

Former-commit-id: 2aa46231fbab9d901fe2060f2b7cea4fca580bd4
parent b2c5aacd
No related branches found
Tags v1.8.0
No related merge requests found
...@@ -71,15 +71,18 @@ ...@@ -71,15 +71,18 @@
django_manage: django_manage:
command: "collectstatic" command: "collectstatic"
app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite" app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
settings: "ippisite.{{ ansible_nodename }}_settings"
- name: create mod_wsgi configuration - name: create mod_wsgi configuration
django_manage: django_manage:
command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80" command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80"
app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite" app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
settings: "ippisite.{{ ansible_nodename }}_settings"
- name: create or update database - name: create or update database
become_user: "{{ deploy_user_name }}" become_user: "{{ deploy_user_name }}"
django_manage: django_manage:
command: "migrate" command: "migrate"
app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite" app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
settings: "ippisite.{{ ansible_nodename }}_settings"
# FIXME: this should obviously be removed before switching to prod. env. # FIXME: this should obviously be removed before switching to prod. env.
- name: restrict access to the web server to specific IPs - name: restrict access to the web server to specific IPs
lineinfile: dest=/etc/ippidb-80/httpd.conf lineinfile: dest=/etc/ippidb-80/httpd.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment