-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhauk.yml
50 lines (42 loc) · 1.16 KB
/
hauk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- hosts: homelab
vars:
application: hauk
hauk_password: "$2y$10$ABxFMeoCHxEFplmmHQpVk.fO2bfUCta4BS0jF9fGonvzLSTmJIMYi"
docker_network: "{{ networks.pub }}"
handlers:
- name: Restart
community.docker.docker_container:
name: "{{ application }}"
restart: true
comparisons:
'*': ignore
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Copy config
ansible.builtin.template:
src: "{{ files_directory }}/config.php.j2"
dest: "{{ config_directory }}/config.php"
owner: "{{ common_user_id }}"
group: "33"
mode: "0440"
notify: Restart
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: bilde2910/hauk:v1.6.2
volumes:
- "{{ config_directory }}:/etc/hauk"
traefik:
- port: 80
homepage:
group: Sharing
weight: 490
description: "Location sharing"