remove lvm integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d7ee41cdce
commit
e49f74eee2
|
@ -6,13 +6,6 @@ unifi_restore_after_upgrade: False
|
||||||
unifi_group: ubnt
|
unifi_group: ubnt
|
||||||
unifi_user: ubnt
|
unifi_user: ubnt
|
||||||
|
|
||||||
unifi_lvm_enabled: False
|
|
||||||
unifi_lvm_pvs:
|
|
||||||
- /dev/sdxx
|
|
||||||
unifi_lvm_vg: vg_unifi
|
|
||||||
unifi_lvm_lv: lv_unifi
|
|
||||||
unifi_lvm_size: 10G
|
|
||||||
unifi_lvm_fstype: xfs
|
|
||||||
unifi_base_dir: /opt/unifi
|
unifi_base_dir: /opt/unifi
|
||||||
unifi_tmp_dir: "{{ unifi_base_dir }}/tmp"
|
unifi_tmp_dir: "{{ unifi_base_dir }}/tmp"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
---
|
---
|
||||||
- import_tasks: prepare.yml
|
- import_tasks: prepare.yml
|
||||||
- import_tasks: storage.yml
|
|
||||||
when: unifi_lvm_enabled
|
|
||||||
- import_tasks: install.yml
|
- import_tasks: install.yml
|
||||||
- import_tasks: tls.yml
|
- import_tasks: tls.yml
|
||||||
when: unifi_tls_enabled
|
when: unifi_tls_enabled
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Create volume group '{{ unifi_lvm_vg }}'
|
|
||||||
lvg:
|
|
||||||
vg: "{{ unifi_lvm_vg }}"
|
|
||||||
pvs: "{{ unifi_lvm_pvs | join(',') }}"
|
|
||||||
pesize: "4"
|
|
||||||
|
|
||||||
- name: Create logical volume '{{ unifi_lvm_lv }}'
|
|
||||||
lvol:
|
|
||||||
vg: "{{ unifi_lvm_vg }}"
|
|
||||||
lv: "{{ unifi_lvm_lv }}"
|
|
||||||
size: "{{ unifi_lvm_size }}"
|
|
||||||
|
|
||||||
- name: Create filesystem for '/dev/mapper/{{ unifi_lvm_vg }}-{{ unifi_lvm_lv }}'
|
|
||||||
filesystem:
|
|
||||||
fstype: "{{ unifi_lvm_fstype }}"
|
|
||||||
dev: "/dev/mapper/{{ unifi_lvm_vg }}-{{ unifi_lvm_lv }}"
|
|
||||||
resizefs: True
|
|
||||||
|
|
||||||
- name: Mount volume to '{{ unifi_base_dir }}'
|
|
||||||
mount:
|
|
||||||
path: "{{ unifi_base_dir }}"
|
|
||||||
src: "/dev/mapper/{{ unifi_lvm_vg }}-{{ unifi_lvm_lv }}"
|
|
||||||
fstype: "{{ unifi_lvm_fstype }}"
|
|
||||||
state: mounted
|
|
||||||
become: True
|
|
||||||
become_user: root
|
|
Loading…
Reference in New Issue
Block a user