mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-15 06:14:31 +03:00
Merge pull request #96 from mnasiadka/ansible_facts_distribution
Change ansible_distribution usage to ansible_facts
This commit is contained in:
@@ -4,9 +4,9 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
rescan_scsi_command: "/sbin/rescan-scsi-bus"
|
rescan_scsi_command: "/sbin/rescan-scsi-bus"
|
||||||
when:
|
when:
|
||||||
- ansible_distribution | replace(' ','') | lower == 'debian'
|
- ansible_facts.distribution | replace(' ','') | lower == 'debian'
|
||||||
- ansible_distribution_release not in ('bookworm', 'sid')
|
- ansible_facts.distribution_release not in ('bookworm', 'sid')
|
||||||
- ansible_distribution_major_version is version(10, '<=')
|
- ansible_facts.distribution_major_version is version(10, '<=')
|
||||||
|
|
||||||
- include_tasks: debian.yml
|
- include_tasks: debian.yml
|
||||||
when: ansible_facts.os_family == "Debian"
|
when: ansible_facts.os_family == "Debian"
|
||||||
|
|||||||
Reference in New Issue
Block a user