Add for futur lvm utilisation
This commit is contained in:
parent
cdd21a87f3
commit
d5ee4dc2f6
1 changed files with 48 additions and 6 deletions
|
|
@ -20,6 +20,48 @@
|
||||||
# - ansible_distribution == "RedHat"
|
# - ansible_distribution == "RedHat"
|
||||||
# - ansible_distribution_major_version == '8'
|
# - ansible_distribution_major_version == '8'
|
||||||
|
|
||||||
|
# - name: Create a thin pool for libvirt
|
||||||
|
# community.general.lvol:
|
||||||
|
# vg: vg_sys
|
||||||
|
# thinpool: libvirt_var
|
||||||
|
# size: "{{ lv_libvirt_size | default('20g') }}"
|
||||||
|
#
|
||||||
|
# - name: Create cache pool logical volume
|
||||||
|
# community.general.lvol:
|
||||||
|
# vg: firefly
|
||||||
|
# lv: lvcache
|
||||||
|
# size: 512m
|
||||||
|
# opts: --type cache-pool
|
||||||
|
#
|
||||||
|
# - name: Verify or create backup LV
|
||||||
|
# community.general.lvol:
|
||||||
|
# lv: libvirt_var
|
||||||
|
# vg: vg_sys
|
||||||
|
# state: present
|
||||||
|
# active: yes
|
||||||
|
# size: 200G
|
||||||
|
#
|
||||||
|
# - name: Verify or apply filesystem for backup LV
|
||||||
|
# ansible.builtin.filesystem:
|
||||||
|
# fstype: ext4
|
||||||
|
# dev: "/dev/mapper/vg_sys-libvirt_var"
|
||||||
|
#
|
||||||
|
# - name: Create /var/lib/libvirt directory
|
||||||
|
# ansible.builtin.file:
|
||||||
|
# path: /var/lib/libvirt
|
||||||
|
# state: directory
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
# mode: 0755
|
||||||
|
#
|
||||||
|
# - name: mount /var/lib/libvirt
|
||||||
|
# ansible.posix.mount:
|
||||||
|
# name: /var/lib/libvirt
|
||||||
|
# src: /dev/mapper/vg_sys-libvirt_var
|
||||||
|
# fstype: ext4
|
||||||
|
# opts: errors=remount-ro,discard
|
||||||
|
# state: mounted
|
||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
name: "{{ libvirt_kvm_packages }}"
|
name: "{{ libvirt_kvm_packages }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue