mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Set kolibri_user to pi if Raspberry Pi
This commit is contained in:
parent
d9ec684f0a
commit
8474702474
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
# SEE kolibri_user EXPLANATION IN roles/kolibri/defaults/main.yml
|
||||
- name: Set kolibri_user to pi if Raspberry Pi
|
||||
set_fact:
|
||||
kolibri_user: pi
|
||||
when: is_rpi | bool
|
||||
|
||||
- name: Create Linux user {{ kolibri_user }} and add it to groups {{ apache_user }}, disk
|
||||
user:
|
||||
name: "{{ kolibri_user }}"
|
||||
|
@ -8,6 +14,7 @@
|
|||
shell: /bin/false
|
||||
system: yes
|
||||
create_home: no
|
||||
when: not is_rpi
|
||||
|
||||
#- name: Create {{ kolibri_home }} (for data) and {{ kolibri_venv_path }} (venv for program/config)
|
||||
- name: Create {{ kolibri_home }} (for data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue