mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
become_user: "{{ kolibri_user }}" to run as pi
"desktop user’s account is preferred" required to avoid errors like "You are running this command as the user 'kolibri', but Kolibri was originally installed to run as the user 'pi'." As recommended by https://kolibri.readthedocs.io/en/latest/install.html#changing-the-owner-of-kolibri-system-service
This commit is contained in:
parent
55fa28e7a7
commit
b5c8f8aed4
1 changed files with 6 additions and 0 deletions
|
@ -81,11 +81,15 @@
|
|||
- name: Run Kolibri migrations (WHY? WHAT DOES THIS DO?)
|
||||
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" manage migrate
|
||||
ignore_errors: yes
|
||||
become: yes
|
||||
become_user: "{{ kolibri_user }}"
|
||||
when: kolibri_provision | bool
|
||||
|
||||
- name: Set Kolibri default language
|
||||
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}"
|
||||
ignore_errors: yes
|
||||
become: yes
|
||||
become_user: "{{ kolibri_user }}"
|
||||
when: kolibri_provision | bool
|
||||
|
||||
- name: Create Kolibri default facility name, admin account and language
|
||||
|
@ -95,6 +99,8 @@
|
|||
--superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}"
|
||||
--preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}" --verbosity 0 --noinput
|
||||
ignore_errors: yes
|
||||
become: yes
|
||||
become_user: "{{ kolibri_user }}"
|
||||
when: kolibri_provision | bool
|
||||
|
||||
- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue