Commit e61ccf35 by Feanil Patel Committed by GitHub

Deal with the case when CREATE_SERVICE_WORKER_USERS is false.

In this case, `service_worker_users` still needs to be defined because the when condition is applied for each item in the `{{ service_worker_users }}` list.  So that var always has to resolve.
parent 079c0ee2
......@@ -425,6 +425,14 @@
tags:
- manage
- manage:db
- name: build service empty worker users list
set_fact:
service_worker_users: "{{ [] }}"
when: not CREATE_SERVICE_WORKER_USERS
tags:
- manage
- manage:db
- name: create service worker users
shell: "{{ edxapp_venv_bin }}/python ./manage.py lms --settings={{ edxapp_settings }} --service-variant lms manage_user {{ item.username}} {{ item.email }} --unusable-password {% if item.is_staff %} --staff{% endif %}"
......
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