mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
Heimdall tweaks to uid/gid
This commit is contained in:
parent
528c3461bc
commit
9884392a7f
3 changed files with 33 additions and 13 deletions
|
@ -50,7 +50,6 @@ mymediaforalexa_enabled: false
|
||||||
miniflux_enabled: false
|
miniflux_enabled: false
|
||||||
|
|
||||||
# System Management
|
# System Management
|
||||||
heimdall_enabled: false
|
|
||||||
organizr_enabled: false
|
organizr_enabled: false
|
||||||
portainer_enabled: false
|
portainer_enabled: false
|
||||||
glances_enabled: false
|
glances_enabled: false
|
||||||
|
@ -340,14 +339,7 @@ traefik_docker_image: traefik:v1.7
|
||||||
traefik_data_directory: "{{ docker_home }}/traefik"
|
traefik_data_directory: "{{ docker_home }}/traefik"
|
||||||
traefik_debug: "false"
|
traefik_debug: "false"
|
||||||
|
|
||||||
###
|
|
||||||
### Heimdall
|
|
||||||
###
|
|
||||||
heimdall_available_externally: "false"
|
|
||||||
heimdall_docker_image: linuxserver/heimdall:latest
|
|
||||||
heimdall_data_directory: "{{ docker_home }}/heimdall"
|
|
||||||
heimdall_port_http: "10080"
|
|
||||||
heimdall_port_https: "10443"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Organizr
|
### Organizr
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
---
|
---
|
||||||
heimdall_enabled: true
|
heimdall_enabled: true
|
||||||
|
heimdall_available_externally: "false"
|
||||||
|
|
||||||
jellyfin_user_id: "0"
|
# directories
|
||||||
jellyfin_group_id: "0"
|
heimdall_docker_image: linuxserver/heimdall:latest
|
||||||
|
heimdall_data_directory: "{{ docker_home }}/heimdall"
|
||||||
|
|
||||||
|
# network
|
||||||
|
heimdall_port_http: "10080"
|
||||||
|
heimdall_port_https: "10443"
|
||||||
|
|
||||||
|
# uid / gid
|
||||||
|
heimdall_user_id: "1310"
|
||||||
|
heimdall_group_id: "1310"
|
|
@ -1,8 +1,26 @@
|
||||||
---
|
---
|
||||||
|
- name: Create Heimdall group
|
||||||
|
group:
|
||||||
|
name: heimdall
|
||||||
|
gid: "{{ heimdall_group_id }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Create Heimdall user
|
||||||
|
user:
|
||||||
|
name: heimdall
|
||||||
|
uid: "{{ heimdall_user_id }}"
|
||||||
|
state: present
|
||||||
|
system: yes
|
||||||
|
update_password: on_create
|
||||||
|
create_home: no
|
||||||
|
group: heimdall
|
||||||
|
|
||||||
- name: Create Heimdall Directories
|
- name: Create Heimdall Directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: heimdall
|
||||||
|
group: heimdall
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ heimdall_data_directory }}"
|
- "{{ heimdall_data_directory }}"
|
||||||
|
|
||||||
|
@ -14,8 +32,8 @@
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ heimdall_data_directory }}:/config:rw"
|
- "{{ heimdall_data_directory }}:/config:rw"
|
||||||
env:
|
env:
|
||||||
PUID: "{{ jellyfin_user_id }}"
|
PUID: "{{ heimdall_user_id }}"
|
||||||
PGID: "{{ jellyfin_group_id }}"
|
PGID: "{{ heimdall_group_id }}"
|
||||||
TZ: "{{ ansible_nas_timezone }}"
|
TZ: "{{ ansible_nas_timezone }}"
|
||||||
ports:
|
ports:
|
||||||
- "{{ heimdall_port_http }}:80"
|
- "{{ heimdall_port_http }}:80"
|
Loading…
Reference in a new issue