Commit 9ce6103e by John Jarvis

adding edxapp tag for task, changing perms for edxapp dirs

parent 0235a6f0
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
tags: tags:
- deploy - deploy
- name: db migrate - name: edxapp | db migrate
shell: sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin }}/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }} shell: sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin }}/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when: migrate_only is defined and migrate_only|lower == "yes" when: migrate_only is defined and migrate_only|lower == "yes"
tags: tags:
......
...@@ -22,16 +22,26 @@ ...@@ -22,16 +22,26 @@
owner="{{ common_log_user }}" owner="{{ common_log_user }}"
notify: common | restart logrotate notify: common | restart logrotate
- name: edxapp | create edxapp data dirs - name: edxapp | create edxapp writable dirs
file: > file: >
path="{{ item }}" path="{{ item }}"
state=directory state=directory
owner="{{ common_web_user }}" owner="{{ edxapp_user }}"
with_items: with_items:
- "{{ edxapp_staticfile_dir }}" - "{{ edxapp_staticfile_dir }}"
- "{{ edxapp_theme_dir }}"
- name: edxapp | create web-writable edxapp data dirs
file: >
path="{{ item }}"
state=directory
owner="{{ common_web_user }}"
group="{{ edxapp_user }}"
mode="0775"
with_items:
- "{{ edxapp_course_data_dir }}" - "{{ edxapp_course_data_dir }}"
- "{{ edxapp_upload_dir }}" - "{{ edxapp_upload_dir }}"
- "{{ edxapp_theme_dir }}"
- name: edxapp | install system packages on which LMS and CMS rely - name: edxapp | install system packages on which LMS and CMS rely
apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present
......
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