OpenVoiceOS / ovos-installer

Open Voice OS and/or HiveMind installer using Ansible with an intuitive and easy Text-based User Interface
https://www.openvoiceos.org
69 stars 21 forks source link

Version comparison failed: '<' not supported between instances of 'str' #27

Closed goldyfruit closed 10 months ago

goldyfruit commented 10 months ago
TASK [ovos_installer : Install PipeWire with ALSA support] **************************************************************************************************************
Sunday 26 November 2023  19:05:49 -0800 (0:00:00.007)       0:00:01.279 ******* 
fatal: [127.0.0.1]: FAILED! => {"msg": "The conditional check 'not (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('23.04', '<=') or ansible_distribution == 'Debian' and ansible_distribution_version is version('12.0', '<='))' failed. The error was: Version comparison failed: '<' not supported between instances of 'str' and 'int'\n\nThe error appears to be in '/extra/home/dth/ovos-installer/ansible/roles/ovos_installer/tasks/sound.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Install PipeWire with ALSA support\n  ^ here\n"}
goldyfruit commented 10 months ago

Operator should be supported https://docs.ansible.com/ansible/latest/collections/ansible/builtin/version_test.html

goldyfruit commented 10 months ago

This is happening because of Debian Unstable, compare to other versions of Debian, the unstable doesn't have a version number but a string (unstable).

goldyfruit commented 10 months ago

Fact returned by Ansible on Debian Unstable:

"ansible_distribution_version": "n/a"
goldyfruit commented 10 months ago

Tested and validated on Debian Unstable

image