Problem icinga2 + Ansible Role

We have the problem that we got a error on running ansible scripts with semaphore.
We have updated ansible to Version 2.16.8 and downgrated back to version 2.12.0, but the error still belive. We have also updated the collection to the latest version.

2:56:00 PM

TASK [icinga.icinga.icinga2 : collect all config objects for myself] ***********

2:56:00 PM

skipping: [ecs-ubu-wildflynoa-a02-1.domain] => (item=rubu-icinga2-p1.domain)

2:56:00 PM

skipping: [ecs-ubu-wildflynoa-a02-1.domain] => (item=ecs-ubu-wildflynoa-a02-1.domain)

2:56:00 PM

2:56:00 PM

TASK [icinga.icinga.icinga2 : collect all config objects in play vars] *********

2:56:00 PM

fatal: [ecs-ubu-wildflynoa-a02-1.roland-domaene.intra]: FAILED! => {“msg”: “The task includes an option with an undefined variable. The error was: ‘icinga2_objects’ is undefined\n\nThe error appears to be in ‘/srv/semaphore/playbooks/.ansible/collections/ansible_collections/icinga/icinga/roles/icinga2/tasks/objects.yml’: line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: collect all config objects in play vars\n ^ here\n”}

The error seems to be risen in the following line of this code:

As written in your output, “icinga2_objects is undefined”. Have you defined this variable accordingly? Please refer to the docs, https://github.com/Icinga/ansible-collection-icinga/blob/0.3.4/doc/role-icinga2/objects.md.

After Rollback the Server Semaphore Server with the ansible version all is working fine.
So the issue can be closed.