algo/roles/common
Dan Guido 72900d3cc7
Fix Ansible 12.0.0 boolean type checking breaking deployments (#14834)
* Fix Ansible 12.0.0 boolean type checking issue

Ansible 12.0.0 enforces strict type checking for conditionals and no longer
automatically converts string values "true"/"false" to booleans. This was
causing deployment failures after the recent Ansible version bump.

Changes:
- Fix ipv6_support to use 'is defined' which returns boolean instead of string
- Fix algo_* variables in input.yml to use {{ false }} instead of string "false"
- Add comprehensive tests to prevent regression
- Add mutation testing to verify tests catch the issue

The fix uses native boolean expressions instead of string literals, ensuring
compatibility with Ansible 12's strict type checking while maintaining backward
compatibility.

Fixes #14833

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix Python linting issues in test files

- Fix import sorting and remove unused imports
- Remove trailing whitespace and blank lines with whitespace
- Use underscore prefix for unused loop variables
- Remove unnecessary file open mode arguments
- Add newlines at end of files
- Remove unused variable assignments

All ruff checks now pass.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-11 19:32:09 -04:00
..
defaults Fix AWS Lightsail deployment error (boto3 parameter) (#14823) 2025-08-16 03:39:00 -04:00
handlers Ansible upgrade 6.1 (#14500) 2022-07-30 15:01:24 +03:00
tasks Fix Ansible 12.0.0 boolean type checking breaking deployments (#14834) 2025-09-11 19:32:09 -04:00
templates Fix VPN routing on multi-homed systems by specifying output interface (#14826) 2025-08-17 22:12:23 -04:00