Commit 04d5bcc0 by Feanil Patel Committed by GitHub

Actually the extra var provides no value.

Just use the one in common that's always defined.
parent e61ccf35
......@@ -418,28 +418,12 @@
tags:
- manage
- name: build service worker users list
set_fact:
service_worker_users: "{{ [SERVICE_WORKER_USERS] }}"
when: CREATE_SERVICE_WORKER_USERS
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 %}"
args:
chdir: "{{ edxapp_code_dir }}"
become_user: "{{ common_web_user }}"
with_items: "{{ service_worker_users }}"
with_items: "{{ SERVICE_WORKER_USERS }}"
when: CREATE_SERVICE_WORKER_USERS
tags:
- manage
......
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