Skip to content

Commit fbdccd3

Browse files
evgeniekohl
authored andcommitted
make custom_hiera enablement compatible with Ansible 2.19+
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.
1 parent d324399 commit fbdccd3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

roles/foreman_installer/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ foreman_installer_scenario: foreman
77
foreman_installer_scenario_flag: '{{ "--scenario" if foreman_installer_scenario else "" }}'
88
foreman_installer_upgrade: False
99
foreman_installer_command: foreman-installer
10-
foreman_installer_custom_hiera:
10+
foreman_installer_custom_hiera: ""
1111
foreman_installer_no_colors: True
1212
foreman_installer_disable_system_checks: False
1313

roles/foreman_installer/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
when: (foreman_installer_module_prs|length > 0) or (foreman_installer_module_branches|length > 0)
99

1010
- include_tasks: custom_hiera.yml
11-
when: foreman_installer_custom_hiera
11+
when: foreman_installer_custom_hiera | length > 0
1212

1313
- include_tasks: install.yml
1414
when: not foreman_installer_upgrade

0 commit comments

Comments
 (0)