Extract values sent to base role into separate configurable variables.

This commit is contained in:
Dorian 2016-05-14 12:17:28 -04:00
parent 0c1b7c293f
commit 99bc5a4477
2 changed files with 7 additions and 2 deletions

View File

@ -20,6 +20,6 @@ dependencies:
nsbase_app_root_path: "{{ app_root_path }}" nsbase_app_root_path: "{{ app_root_path }}"
nsbase_app_nginx_hostname: "{{ app_nginx_hostname }}" nsbase_app_nginx_hostname: "{{ app_nginx_hostname }}"
nsbase_app_service_name: "{{ uwsgi_app_service_name }}" nsbase_app_service_name: "{{ uwsgi_app_service_name }}"
nsbase_app_service_command: "{{ uwsgi_venv }}/bin/uwsgi --ini {{ uwsgi_config_path }}/{{ uwsgi_app_ini }}" nsbase_app_service_command: "{{ uwsgi_supervisor_app_command }}"
nsbase_app_service_stop_signal: QUIT nsbase_app_service_stop_signal: QUIT
nsbase_nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf" nsbase_nginx_app_config: "{{ uwsgi_nginx_app_config }}"

View File

@ -7,8 +7,13 @@ web_user: "{{ ansible_env.SUDO_USER }}"
# NGINX # NGINX
nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf" nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf"
# UWSGI # UWSGI
uwsgi_venv: "{{ virtualenv_root_path }}/uwsgi" uwsgi_venv: "{{ virtualenv_root_path }}/uwsgi"
uwsgi_config_path: "{{ web_root_path }}/config/uwsgi" uwsgi_config_path: "{{ web_root_path }}/config/uwsgi"
uwsgi_app_ini: "{{ app_name }}_uwsgi.ini" uwsgi_app_ini: "{{ app_name }}_uwsgi.ini"
uwsgi_app_service_name: "{{ app_name }}_uwsgi" uwsgi_app_service_name: "{{ app_name }}_uwsgi"
# TODO: Document extracted variables
uwsgi_supervisor_app_command: "{{ uwsgi_venv }}/bin/uwsgi --ini {{ uwsgi_config_path }}/{{ uwsgi_app_ini }}"
uwsgi_nginx_app_config: "{{ app_name }}_uwsgi_nginx.conf"