Installation/Upgrade with newer versions of ansible fail
I'm deploying paperless-ngx on Ubuntu 24.04 using ansible:
```
ansible [core 2.19.0]
config file = None
configured module search path = ['/home/nik/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.13/site-packages/ansible
ansible collection location = /home/nik/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.13.5 (main, Jun 21 2025, 09:35:00) [GCC 15.1.1 20250425] (/usr/bin/python)
jinja version = 3.1.6
pyyaml version = 6.0.2 (with libyaml v0.2.5)
```
However I get the following error:
```
TASK [paperless-ngx : Fail if a downgrade is detected] **********************************************************************************************************
[ERROR]: Task failed: Conditional result was 'false' of type 'str', which evaluates to True. Conditionals must have a boolean result.
Task failed.
Origin: /home/-/Coding/infrastructure/ansible/roles/paperless-ngx/tasks/preparation/pngx_release.yml:103:3
101 - "Downgrade: {{ _paperless_ngx_installation_strategy_downgrade }}"
102
103 - name: Fail if a downgrade is detected
^ column 3
<<< caused by >>>
Conditional result was 'false' of type 'str', which evaluates to True. Conditionals must have a boolean result.
Origin: /home/-/Coding/infrastructure/ansible/roles/paperless-ngx/tasks/preparation/pngx_release.yml:106:9
104 ansible.builtin.fail:
105 msg: Downgrade detected - Downgrades are not allowed.
106 when: _paperless_ngx_installation_strategy_downgrade
^ column 9
Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option.
fatal: [paperless]: FAILED! => {"changed": false, "msg": "Task failed: Conditional result was 'false' of type 'str', which evaluates to True. Conditionals must have a boolean result."}
```
Before my system Upgrade everything with this ansible role worked fine.
1 条评论