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: monerod:
file: monerod.yml file: monerod.yml
domain: "xmr.{{ base_domain }}" domain: "xmr.{{ base_domain }}"
version: alpine version: latest
wireguard: wireguard:
file: wireguard.yml file: wireguard.yml

View file

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

View file

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

View file

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