We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ansible version: 2.16.4 Jinja version 3.0.3 Latest galaxy version of collection
The icingaweb2 ini configuration fails with the following error
failed: [icingawebhost] (item=config) => { "ansible_loop_var": "item", "changed": false, "item": "config", "msg": "AnsibleError: Unexpected templating type error occurred on ({% import 'ini_template.j2' as ini_template %}\n{{ ini_template.generate_ini(_i2_config_hash) -}}\n): sequence item 5: expected str instance, int found. sequence item 5: expected str instance, int found" }
The problem is in roles/icingaweb2/templates/ini_template.j2 line 7
{% if value is number %} {{ option }} = "{{ value }}"
casting the value to a string fixes the problem
{% if value is number %} {{ option }} = "{{ value | string }}"
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Ansible version: 2.16.4
Jinja version 3.0.3
Latest galaxy version of collection
Error
The icingaweb2 ini configuration fails with the following error
Cause
The problem is in roles/icingaweb2/templates/ini_template.j2 line 7
Solution
casting the value to a string fixes the problem
The text was updated successfully, but these errors were encountered: