Skip to content

Commit

Permalink
fixes fails if icinga2_objects arent defined which is the default
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Jan 16, 2024
1 parent c4373c5 commit 9fbc7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/icinga2/tasks/objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- name: collect all config objects in play vars
set_fact:
tmp_objects: "{{ tmp_objects| default([]) + lookup('list', icinga2_objects) }}"
when: vars['icinga2_objects'][icinga2_config_host] is not defined
when: icinga2_objects is defined and vars['icinga2_objects'][icinga2_config_host] is not defined

- icinga2_object:
args: "{{ item }}"
Expand Down

0 comments on commit 9fbc7da

Please sign in to comment.