1
0
Fork 0
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:
A Holt 2019-09-26 20:58:45 -04:00 committed by GitHub
parent d9ec684f0a
commit 8474702474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)