You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when: vars['icinga2_objects'][icinga2_config_host] is not defined
to
when: vars['icinga2_objects'] is defined and vars['icinga2_objects'][icinga2_config_host] is not defined
TASK [icinga.icinga.icinga2 : collect all config objects in play vars] *****************************************************************************************************************************************************************************************************************************************************fatal: [agent]: FAILED! => msg: |- The task includes an option with an undefined variable. The error was: 'icinga2_objects' is undefined. 'icinga2_objects' is undefined The error appears to be in '/root/.ansible/collections/ansible_collections/icinga/icinga/roles/icinga2/tasks/objects.yml': line 8, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: collect all config objects in play vars ^ here
Worked around/fixed by changing
to
Playbook:
The text was updated successfully, but these errors were encountered: