-
Notifications
You must be signed in to change notification settings - Fork 5
/
ownfoil.yml
66 lines (58 loc) · 1.64 KB
/
ownfoil.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
- hosts: homelab
vars:
application: ownfoil
docker_network: "{{ networks.iot }}"
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: Create settings.yaml
ansible.builtin.copy:
content: |
library:
paths:
- /games
shop:
encrypt: false
motd: Welcome to your own shop!
public: true
titles:
language: en
region: US
valid_keys: true
dest: "{{ config_directory }}/settings.yaml"
mode: "0644"
- name: Copy prod.keys
ansible.builtin.copy:
src: "{{ files_directory }}/prod.keys"
dest: "{{ config_directory }}/keys.txt"
mode: "0644"
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: a1ex4/ownfoil:latest
volumes:
- "{{ config_directory }}:/app/config"
- "{{ common_directory_games }}/Switch/Games:/games:ro"
ipv4_address: "{{ docker_network.prefix }}.250"
homepage:
name: Ownfoil
group: Gaming
icon: /icons/tinfoil.png
description: Nintendo Switch Games
href: http://tinfoil.{{ common_local_tld }}:8465
weight: 900
monitor: true