We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4373c5 commit 9fbc7daCopy full SHA for 9fbc7da
roles/icinga2/tasks/objects.yml
@@ -8,7 +8,7 @@
8
- name: collect all config objects in play vars
9
set_fact:
10
tmp_objects: "{{ tmp_objects| default([]) + lookup('list', icinga2_objects) }}"
11
- 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
12
13
- icinga2_object:
14
args: "{{ item }}"
0 commit comments