---

server_root_dir: /webapps

virtualenv_path: "/webapps/{{ django_application_name }}"
project_path: "{{ virtualenv_path }}/{{ django_project_name }}"

celery_user: "{{ django_application_name }}"
celery_group: webapps

celery_state_dir: "/var/run/celery"

celery_application_name: celery
celery_scripts_dir: "{{ virtualenv_path }}/scripts/celery"
celery_template_file: "{{ celery_application_name }}_start.j2"

celery_log_dir: "{{ virtualenv_path }}/logs"
celery_log_file: "{{ celery_log_dir }}/{{ celery_application_name }}.log"

---

server_root_dir: /webapps

virtualenv_path: "/webapps/{{ django_application_name }}"
project_path: "{{ virtualenv_path }}/{{ django_project_name }}"

celery_user: "{{ django_application_name }}"
celery_group: webapps


celery_application_name: celery
celery_scripts_dir: "{{ virtualenv_path }}/scripts/celery"
celery_template_file: "{{ celery_application_name }}_start.j2"
celery_state_dir: "{{ celery_scripts_dir }}"

celery_log_dir: "{{ virtualenv_path }}/logs"
celery_log_file: "{{ celery_log_dir }}/{{ celery_application_name }}.log"

Store Celery state directory with the script
Store Celery state directory with the script

It seems that `/var/run/celery` isn't guaranteed to exist, even though
the Celery documentation gives this as the suggested location. Let's
stick with a directory we control.
