diff --git a/roles/zabbix_proxy/tasks/configure.yml b/roles/zabbix_proxy/tasks/configure.yml index 24bd592..2424dc4 100644 --- a/roles/zabbix_proxy/tasks/configure.yml +++ b/roles/zabbix_proxy/tasks/configure.yml @@ -40,7 +40,10 @@ 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 - name: Check if proxy exists @@ -59,11 +62,12 @@ Content-Type: "application/json" Authorization: "Bearer {{ zabbix_auth_token }}" register: proxy_check - + run_once: true # Run this task only once - name: Print proxy_check debug: msg: "{{ proxy_check }}" + run_once: true # Run this task only once - name: Create proxy if not exists uri: @@ -89,4 +93,5 @@ - name: Print proxy_check debug: - msg: "{{ proxy_check2 }}" \ No newline at end of file + msg: "{{ proxy_check2 }}" + run_once: true # Run this task only once \ No newline at end of file