Skip to content

Ansible 12 and broken implicit booleans #399

@Donien

Description

@Donien

With Ansible 12 conditionals have to be explicit booleans.
Syntax like when: my_list (to check whether the list is not empty) will no longer work.

This issue serves as a reminder to this new behavior. This should be addressed, ideally before the release of Ansible 12 (ansible-core 2.19) if possible.

I don't know how often this implicit style occurs in the collection but I would be surprised if it wasn't used at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions