mrlesmithjr/ansible-manage-lvm

skip setting rescan_scsi_command for debian testing and sid also

Closed this issue · 0 comments

Describe the bug
For Debian Testing and SID ansible_distribution_major_version contains a string instead of an int

Expected behavior
Add an additional condition to check ansible_distribution_release which should contain the Debian codename.

PR: #91

Screenshots

TASK [ansible-role-storage : Set rescan_scsi_command for old debian version] ***************************************************************************************************************************
fatal: [htpc-g072]: FAILED! => {"msg": "The conditional check 'ansible_distribution_major_version is version(10, '<=')' failed. The error was: Version comparison failed: '<' not supported between instances of 'str' and 'int'\n\nThe error appears to be in '/home/*****/tasks/main.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# tasks file for ansible-manage-lvm\n- name: Set rescan_scsi_command for old debian version\n  ^ here\n"}