Add for futur lvm utilisation
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-11-11 23:48:28 +01:00
parent cdd21a87f3
commit d5ee4dc2f6
Signed by: adrien
GPG key ID: DA7B27055C66D6DE

View file

@ -13,12 +13,54 @@
- ansible_distribution == 'CentOS'
- ansible_distribution_major_version == '7'
#- name: Enable a AppStream RHSM repository
# community.general.rhsm_repository:
# name: "rhel-8-for-{{ ansible_architecture }}-appstream-rpms"
# when:
# - ansible_distribution == "RedHat"
# - ansible_distribution_major_version == '8'
# - name: Enable a AppStream RHSM repository
# community.general.rhsm_repository:
# name: "rhel-8-for-{{ ansible_architecture }}-appstream-rpms"
# when:
# - ansible_distribution == "RedHat"
# - 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
package: