mg
169abbedff
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#363 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
19 lines
528 B
YAML
19 lines
528 B
YAML
---
|
|
# 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:
|
|
- ansible_distribution | replace(' ','') | lower == 'debian'
|
|
- ansible_distribution_major_version is version(10, '<=')
|
|
|
|
- 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
|