Skip to content

fix syntax to work with ansible 2.19+#94

Merged
stgraber merged 2 commits intolxc:mainfrom
gregoryguillou:fix/boolean-conditions
Feb 7, 2026
Merged

fix syntax to work with ansible 2.19+#94
stgraber merged 2 commits intolxc:mainfrom
gregoryguillou:fix/boolean-conditions

Conversation

@gregoryguillou
Copy link
Contributor

This PR comes on top of "manage deprecation and move to proper variables" and needs to be rebased to pass.

Ansible 2.19+ is more strict. Some roles have been modified to reflect the new requirements:

  • in the when condition predicates must be true of false. For instance incus_ovn_northbound was simply tested as defined, now the code check is is actually defined and not empty with a proper condition
  • in the delegate_to is now evaluated even if the condition prevent the code from being executed. This PR makes sure the associated code is valid.

Signed-off-by: Gregory Guillou <gregory@resetlogs.com>
Signed-off-by: Gregory Guillou <gregory@resetlogs.com>
@stgraber stgraber force-pushed the fix/boolean-conditions branch from 4a95268 to c7d423c Compare February 7, 2026 16:59
@stgraber stgraber enabled auto-merge February 7, 2026 17:00
@stgraber stgraber merged commit cee2d38 into lxc:main Feb 7, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants