Fixup!
This commit is contained in:
parent
fc1c093732
commit
1b9e59078e
|
@ -34,7 +34,7 @@ services:
|
|||
monerod:
|
||||
file: monerod.yml
|
||||
domain: "xmr.{{ base_domain }}"
|
||||
version: alpine
|
||||
version: latest
|
||||
|
||||
wireguard:
|
||||
file: wireguard.yml
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue