mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Run 3 Kolibri tasks as 'pi' when is_rpi
This commit is contained in:
parent
7ccf6dab9e
commit
b8c7387a63
1 changed files with 25 additions and 3 deletions
|
@ -85,19 +85,20 @@
|
|||
enabled: yes
|
||||
state: stopped
|
||||
|
||||
|
||||
- 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
|
||||
when: kolibri_provision and is_rpi
|
||||
|
||||
- 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
|
||||
when: kolibri_provision and is_rpi
|
||||
|
||||
- name: Create Kolibri default facility name, admin account and language
|
||||
shell: >
|
||||
|
@ -108,7 +109,28 @@
|
|||
ignore_errors: yes
|
||||
become: yes
|
||||
become_user: "{{ kolibri_user }}"
|
||||
when: kolibri_provision | bool
|
||||
when: kolibri_provision and is_rpi
|
||||
|
||||
|
||||
- name: Run Kolibri migrations (WHY? WHAT DOES THIS DO?)
|
||||
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" manage migrate
|
||||
ignore_errors: yes
|
||||
when: kolibri_provision and not is_rpi
|
||||
|
||||
- name: Set Kolibri default language
|
||||
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}"
|
||||
ignore_errors: yes
|
||||
when: kolibri_provision and not is_rpi
|
||||
|
||||
- name: Create Kolibri default facility name, admin account and language
|
||||
shell: >
|
||||
export KOLIBRI_HOME="{{ kolibri_home }}" &&
|
||||
"{{ kolibri_exec_path }}" manage provisiondevice --facility "{{ kolibri_facility }}"
|
||||
--superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}"
|
||||
--preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}" --verbosity 0 --noinput
|
||||
ignore_errors: yes
|
||||
when: kolibri_provision and not is_rpi
|
||||
|
||||
|
||||
- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }}
|
||||
file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue