diff --git a/roles/zabbix_proxy/tasks/Rocky.yml b/roles/zabbix_proxy/tasks/Rocky.yml index dd3bf8a..2f50840 100644 --- a/roles/zabbix_proxy/tasks/Rocky.yml +++ b/roles/zabbix_proxy/tasks/Rocky.yml @@ -240,7 +240,8 @@ Content-Type: "application/json" Authorization: "Bearer {{ zabbix_auth_token }}" register: proxygroup_check - + delegate_to: localhost # This forces the task to run locally + run_once: true - name: Print proxygroup_check debug: @@ -264,7 +265,9 @@ Authorization: "Bearer {{ zabbix_auth_token }}" when: proxygroup_check.json.result | length == 0 register: proxygroup_check2 - + delegate_to: localhost # This forces the task to run locally + run_once: true + - name: Print proxygroup_check2 debug: msg: "{{ proxygroup_check2 }}"