k3s-ansible/roles/prereq
Stefan Haun e3fe7ec450
Fix condition evaluation on ansible_all_ipv6_addresses to have a Boolean result (#404)
The condition `when: ansible_all_ipv6_addresses` evaluates to a list, which in
term evaluates to True,  but it seems that more recent Ansible versions do not
accept that anymore:

```
Conditional result was "['fe80::...']" of type 'list', which evaluates to True. Conditionals must have a boolean result.
```

This commit adds a length check to create a real Boolean result.

Signed-off-by: Stefan Haun <mail@tuxathome.de>
2025-04-18 09:07:40 -07:00
..
defaults Add group variables to the prereq role (#334) 2024-06-10 09:58:06 -07:00
tasks Fix condition evaluation on ansible_all_ipv6_addresses to have a Boolean result (#404) 2025-04-18 09:07:40 -07:00
vars Apply noqa and fix line lenght limit. ansible-lint production profile (#326) 2024-05-03 09:38:01 -07:00