From 925ee7bcccad3da3c926ea06a205ae37a2abe52d Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 16 Feb 2026 01:57:55 +0100 Subject: [PATCH] build --- roles/zabbix_proxy/tasks/Rocky.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/roles/zabbix_proxy/tasks/Rocky.yml b/roles/zabbix_proxy/tasks/Rocky.yml index 2f50840..46f4c7f 100644 --- a/roles/zabbix_proxy/tasks/Rocky.yml +++ b/roles/zabbix_proxy/tasks/Rocky.yml @@ -240,8 +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 + run_once: true # Run this task only once + delegate_to: "{{ groups['all'][0] }}" - name: Print proxygroup_check debug: @@ -265,9 +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 - + run_once: true # Run this task only once + delegate_to: "{{ groups['all'][0] }}" + - name: Print proxygroup_check2 debug: msg: "{{ proxygroup_check2 }}" @@ -288,6 +288,8 @@ Content-Type: "application/json" Authorization: "Bearer {{ zabbix_auth_token }}" register: proxy_check + + - name: Print proxy_check debug: msg: "{{ proxy_check }}"