remove lvm integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-10-21 23:13:25 +02:00
parent 317689cb8d
commit 92d357ccb3
3 changed files with 0 additions and 37 deletions

View File

@ -5,13 +5,6 @@ jellyfin_user_home: "/home/{{ jellyfin_user }}"
jellyfin_group: "{{ jellyfin_user }}" jellyfin_group: "{{ jellyfin_user }}"
jellyfin_extra_groups: [] jellyfin_extra_groups: []
jellyfin_lvm_enabled: False
# @var jellyfin_lvm_pvs: $ "_unset_"
# @var jellyfin_lvm_vg: $ "_unset_"
# @var jellyfin_lvm_lv: $ "_unset_"
# @var jellyfin_lvm_fstype: $ "ext4"
# @var jellyfin_lvm_size: $ "50G"
jellyfin_base_dir: "/opt/jellyfin" jellyfin_base_dir: "/opt/jellyfin"
jellyfin_conf_dir: "{{ jellyfin_base_dir }}/config" jellyfin_conf_dir: "{{ jellyfin_base_dir }}/config"
jellyfin_data_dir: "{{ jellyfin_base_dir }}/data" jellyfin_data_dir: "{{ jellyfin_base_dir }}/data"

View File

@ -1,6 +1,4 @@
--- ---
- include_tasks: prepare.yml - include_tasks: prepare.yml
- import_tasks: storage.yml
when: jellyfin_lvm_enabled
- include_tasks: install.yml - include_tasks: install.yml
- include_tasks: post_tasks.yml - include_tasks: post_tasks.yml

View File

@ -1,28 +0,0 @@
---
- block:
- name: Create volume group '{{ jellyfin_lvm_vg }}'
lvg:
vg: "{{ jellyfin_lvm_vg }}"
pvs: "{{ jellyfin_lvm_pvs | join(',') }}"
pesize: "4"
- name: Create logical volume '{{ jellyfin_lvm_lv }}'
lvol:
vg: "{{ jellyfin_lvm_vg }}"
lv: "{{ jellyfin_lvm_lv }}"
size: "{{ jellyfin_lvm_size }}"
- name: Create filesystem for '/dev/mapper/{{ jellyfin_lvm_vg }}-{{ jellyfin_lvm_lv }}'
filesystem:
fstype: "{{ jellyfin_lvm_fstype }}"
dev: "/dev/mapper/{{ jellyfin_lvm_vg }}-{{ jellyfin_lvm_lv }}"
resizefs: True
- name: Mount volume to '{{ jellyfin_base_dir }}'
mount:
path: "{{ jellyfin_base_dir }}"
src: "/dev/mapper/{{ jellyfin_lvm_vg }}-{{ jellyfin_lvm_lv }}"
fstype: "{{ jellyfin_lvm_fstype }}"
state: mounted
become: True
become_user: root