diff --git a/roles/zabbix_proxy/tasks/configure.yml b/roles/zabbix_proxy/tasks/configure.yml index 2424dc4..168fcd3 100644 --- a/roles/zabbix_proxy/tasks/configure.yml +++ b/roles/zabbix_proxy/tasks/configure.yml @@ -17,8 +17,11 @@ register: proxygroup_check run_once: true # Run this task only once - - +- name: Print proxy_check + debug: + msg: "{{ proxygroup_check }}" + run_once: true # Run this task only once + when: proxygroup_check.json.result | length != 0 - name: Create proxy group if not exists uri: @@ -40,7 +43,7 @@ register: proxygroup_check run_once: true # Run this task only once -- name: Print proxy_check +- name: Print proxygroup_check debug: msg: "{{ proxygroup_check }}" run_once: true # Run this task only once