Skip to content

Commit

Permalink
Merge pull request #96 from mnasiadka/ansible_facts_distribution
Browse files Browse the repository at this point in the history
Change ansible_distribution usage to ansible_facts
  • Loading branch information
mrlesmithjr authored Oct 19, 2022
2 parents ca90344 + a28791c commit ea2e60f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
set_fact:
rescan_scsi_command: "/sbin/rescan-scsi-bus"
when:
- ansible_distribution | replace(' ','') | lower == 'debian'
- ansible_distribution_release not in ('bookworm', 'sid')
- ansible_distribution_major_version is version(10, '<=')
- ansible_facts.distribution | replace(' ','') | lower == 'debian'
- ansible_facts.distribution_release not in ('bookworm', 'sid')
- ansible_facts.distribution_major_version is version(10, '<=')

- include_tasks: debian.yml
when: ansible_facts.os_family == "Debian"
Expand Down

0 comments on commit ea2e60f

Please sign in to comment.