Skip to content
New issue

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

Icingaweb2 role not installing with default configuration on Ubuntu 22.04 #322

Closed
lhooge opened this issue Aug 21, 2024 · 0 comments
Closed

Comments

@lhooge
Copy link

lhooge commented Aug 21, 2024

Sorry, overseen that one...: #285

Hi everyone,

I'm trying to setup icinga via ansible and had some troubles with the installation of icingaweb2 role on Ubuntu 22.04.

In the default variables there is show_stacktraces and show_application_state_messages configured with 1, which leads to the following exception

TASK [icinga.icinga.icingaweb2 : Create icingaweb2 config files] 
*******************************************************************************************
An exception occurred during task execution. 
To see the full traceback, use -vvv. The error was: ): sequence item 5: expected str instance, int found. sequence item 5: 
expected str instance, int found failed: 
[icinga.example.int.eu] (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"
}

Ubuntu Jammy 22.04
Python version: 3.10.12

Ansible version:

ansible [core 2.16.10]
  config file = /home/ansible/playbooks/ansible.cfg
  configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True

I've updated my system to Ubuntu 24.04 which installs python 3.12. Here I do not have the problem with integer value in the default configuration. I have not seen any requirements specified besides requires_ansible: ">=2.9". Maybe this can be mentioned or fixed in the template?

@lhooge lhooge closed this as completed Aug 21, 2024
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

No branches or pull requests

1 participant