This commit is contained in:
Sam A. 2022-12-23 18:28:01 +01:00
parent fc1c093732
commit 1b9e59078e
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
4 changed files with 21 additions and 11 deletions

View file

@ -34,7 +34,7 @@ services:
monerod:
file: monerod.yml
domain: "xmr.{{ base_domain }}"
version: alpine
version: latest
wireguard:
file: wireguard.yml

View file

@ -19,8 +19,8 @@
image: "emby/embyserver_arm64v8:{{ services.emby.version }}"
restart_policy: unless-stopped
env:
UID: 1000
GID: 1000
UID: '1000'
GID: '1000'
volumes:
- "{{ services.emby.volume }}/programdata:/config:rw"
- "{{ services.emby.volume }}/tvshows:/mnt/share1:rw"

View file

@ -52,7 +52,7 @@
redis:
image: "redis:{{ services.nextcloud.redis_version }}"
restart: unless-stopped
command: "redis-server --requirepass={{ secrets.nextcloud.redis_pw }}"
command: "redis-server --requirepass {{ secrets.nextcloud.redis_pw }}"
tmpfs:
- /var/lib/redis

View file

@ -13,26 +13,36 @@
- disk: "{{ secrets.ssd }}"
name: "{{ ssd_name }}"
- name: Get list of mounted devices
shell: mount
register: blk_list
- name: Create var mounted_devices
set_fact:
mounted_devices: "{{ blk_list.stdout_lines }}"
- name: Create filesystems if they do not exist
filesystem:
dev: "/dev/mapper/{{ item }}"
dev: "{{ item }}"
fstype: ext4
state: present
when: mounted_devices | select('search', item) | list | length == 0
loop:
- "{{ hdd_name }}"
- "{{ ssd_name }}"
- "/dev/mapper/{{ hdd_name }}"
- "/dev/mapper/{{ ssd_name }}"
- name: Mount filesystems
mount:
src: "/dev/disk/by-uuid/{{ item.uuid }}"
src: "{{ item.dev }}"
path: "{{ item.path }}"
fstype: ext4
fstab: /dev/null
fstab: /tmp/fstab.ansible
state: mounted
when: mounted_devices | select('search', item.dev) | list | length == 0
loop:
- uuid: "{{ secrets.hdd.uuid }}"
- dev: "/dev/mapper/{{ hdd_name }}"
path: "{{ hdd_mount_point }}"
- uuid: "{{ secrets.ssd.uuid }}"
- dev: "/dev/mapper/{{ ssd_name }}"
path: "{{ ssd_mount_point }}"
- name: Check if swapfile is mounted