mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 03:38:41 +00:00
Tidy up Heimdall
This commit is contained in:
parent
663d1ae5a2
commit
2c22d476db
2 changed files with 1 additions and 25 deletions
|
@ -7,14 +7,9 @@ heimdall_docker_image: linuxserver/heimdall:latest
|
|||
heimdall_data_directory: "{{ docker_home }}/heimdall"
|
||||
|
||||
# network
|
||||
heimdall_port_http: "10080"
|
||||
heimdall_port_https: "10443"
|
||||
heimdall_port_http: "11112"
|
||||
heimdall_hostname: heimdall
|
||||
|
||||
# uid / gid
|
||||
heimdall_user_id: "1310"
|
||||
heimdall_group_id: "1310"
|
||||
|
||||
# specs
|
||||
heimdall_memory: 1g
|
||||
|
||||
|
|
|
@ -1,22 +1,6 @@
|
|||
---
|
||||
- name: Start Heimdall
|
||||
block:
|
||||
- name: Create Heimdall group
|
||||
ansible.builtin.group:
|
||||
name: heimdall
|
||||
gid: "{{ heimdall_group_id }}"
|
||||
state: present
|
||||
|
||||
- name: Create Heimdall user
|
||||
ansible.builtin.user:
|
||||
name: heimdall
|
||||
uid: "{{ heimdall_user_id }}"
|
||||
state: present
|
||||
system: yes
|
||||
update_password: on_create
|
||||
create_home: no
|
||||
group: heimdall
|
||||
|
||||
- name: Create Heimdall Directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
|
@ -34,12 +18,9 @@
|
|||
volumes:
|
||||
- "{{ heimdall_data_directory }}:/config:rw"
|
||||
env:
|
||||
PUID: "{{ heimdall_user_id }}"
|
||||
PGID: "{{ heimdall_group_id }}"
|
||||
TZ: "{{ ansible_nas_timezone }}"
|
||||
ports:
|
||||
- "{{ heimdall_port_http }}:80"
|
||||
- "{{ heimdall_port_https }}:443"
|
||||
restart_policy: unless-stopped
|
||||
memory: "{{ heimdall_memory }}"
|
||||
labels:
|
||||
|
|
Loading…
Reference in a new issue