Skip to content

Ansible-Core 2.19 contains major templating changes #247

@AlexCK-STFC

Description

@AlexCK-STFC

Requirements.txt allows Ansible-Core 2.19:
ansible-core>=2.12

I believe this is causing multiple issues.

Redeploying from scratch, I came across azimuth-cloud/ansible-collection-terraform#25

I've now got:

[ERROR]: Task failed: Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result.

Task failed.
Origin: /home/ubuntu/azimuth/cloud-azimuth-config/.ansible/collections/ansible_collections/azimuth_cloud/azimuth_ops/roles/alertmanager_config/tasks/main.yml:2:3

1 ---
2 - name: Install Slack webhook URL secret
    ^ column 3

<<< caused by >>>

Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result.
Origin: /home/ubuntu/azimuth/cloud-azimuth-config/.ansible/collections/ansible_collections/azimuth_cloud/azimuth_ops/playbooks/deploy.yml:11:13

 9     # Configure alerting
10     - role: azimuth_cloud.azimuth_ops.alertmanager_config
11       when: >-
               ^ column 13

Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option.

fatal: [azimuth-stfc-dev]: FAILED! => {
    "changed": false,
    "msg": "Task failed: Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result."
}

Later in the process, which is described here: https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_12.html#example-implicit-boolean-conversion

Either the version should be pinned, or multiple fixes will need to be investigated. I'm pinning my local version for now rather than contributing more fixes, to azimuth-ops and other repos that make use of templating, as I'm not sure the path you want to take.

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