Skip to content

make custom_hiera enablement compatible with Ansible 2.19+#1945

Merged
ekohl merged 1 commit into
masterfrom
custom-boolean
May 26, 2026
Merged

make custom_hiera enablement compatible with Ansible 2.19+#1945
ekohl merged 1 commit into
masterfrom
custom-boolean

Conversation

@evgeni
Copy link
Copy Markdown
Member

@evgeni evgeni commented May 26, 2026

This fixes the following error:

[ERROR]: Task failed: Conditional result (False) was derived from value of type 'NoneType' at '<unknown>'. Conditionals must have a boolean result.

Task failed.
Origin: /home/evgeni/Devel/theforeman/forklift/roles/foreman_installer/tasks/main.yml:10:3

 8   when: (foreman_installer_module_prs|length > 0) or (foreman_installer_module_branches|length > 0)
 9
10 - include_tasks: custom_hiera.yml
     ^ column 3

<<< caused by >>>

Conditional result (False) was derived from value of type 'NoneType' at '<unknown>'. Conditionals must have a boolean result.
Origin: /home/evgeni/Devel/theforeman/forklift/roles/foreman_installer/tasks/main.yml:11:9

 9
10 - include_tasks: custom_hiera.yml
11   when: foreman_installer_custom_hiera
           ^ column 9

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

This fixes the following error:

    [ERROR]: Task failed: Conditional result (False) was derived from value of type 'NoneType' at '<unknown>'. Conditionals must have a boolean result.

    Task failed.
    Origin: /home/evgeni/Devel/theforeman/forklift/roles/foreman_installer/tasks/main.yml:10:3

     8   when: (foreman_installer_module_prs|length > 0) or (foreman_installer_module_branches|length > 0)
     9
    10 - include_tasks: custom_hiera.yml
         ^ column 3

    <<< caused by >>>

    Conditional result (False) was derived from value of type 'NoneType' at '<unknown>'. Conditionals must have a boolean result.
    Origin: /home/evgeni/Devel/theforeman/forklift/roles/foreman_installer/tasks/main.yml:11:9

     9
    10 - include_tasks: custom_hiera.yml
    11   when: foreman_installer_custom_hiera
               ^ column 9

    Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option.
@ekohl ekohl merged commit fbdccd3 into master May 26, 2026
13 checks passed
@ekohl ekohl deleted the custom-boolean branch May 26, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants