Skip to content

Commit

Permalink
✅ Fix Heimdall tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anarion80 committed Mar 5, 2024
1 parent 0ce071d commit 70c8db7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/heimdall/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ heimdall_data_directory: "{{ docker_home }}/heimdall"
heimdall_port_http: "11112"
heimdall_hostname: heimdall

# uid / gid
heimdall_user_id: "1310"
heimdall_group_id: "1310"

# specs
heimdall_memory: 1g

Expand Down
18 changes: 18 additions & 0 deletions roles/heimdall/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
---
- 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 }}"
Expand All @@ -19,6 +35,8 @@
- "{{ heimdall_data_directory }}:/config:rw"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ heimdall_user_id }}"
PGID: "{{ heimdall_group_id }}"
ports:
- "{{ heimdall_port_http }}:80"
restart_policy: unless-stopped
Expand Down

0 comments on commit 70c8db7

Please sign in to comment.