2022-05-17 12:05:45 +02:00
|
|
|
---
|
|
|
|
# tasks file for ansible-manage-lvm
|
|
|
|
- name: Set rescan_scsi_command for old debian version
|
|
|
|
set_fact:
|
|
|
|
rescan_scsi_command: "/sbin/rescan-scsi-bus"
|
|
|
|
when:
|
2023-02-17 12:17:26 +01:00
|
|
|
- ansible_facts.distribution | replace(' ','') | lower == 'debian'
|
|
|
|
- ansible_facts.distribution_release not in ('bookworm', 'sid')
|
|
|
|
- ansible_facts.distribution_major_version is version(10, '<=')
|
2022-05-17 12:05:45 +02:00
|
|
|
|
|
|
|
- include_tasks: debian.yml
|
|
|
|
when: ansible_facts.os_family == "Debian"
|
|
|
|
|
|
|
|
- include_tasks: centos.yml
|
|
|
|
when: ansible_facts.os_family == "RedHat"
|
|
|
|
|
|
|
|
- include_tasks: manage_lvm.yml
|
|
|
|
when:
|
|
|
|
- lvm_groups is defined
|
|
|
|
- manage_lvm|bool
|