This commit is contained in:
2026-02-16 01:57:55 +01:00
parent 7cf4633a69
commit 925ee7bccc

View File

@@ -240,8 +240,8 @@
Content-Type: "application/json" Content-Type: "application/json"
Authorization: "Bearer {{ zabbix_auth_token }}" Authorization: "Bearer {{ zabbix_auth_token }}"
register: proxygroup_check register: proxygroup_check
delegate_to: localhost # This forces the task to run locally run_once: true # Run this task only once
run_once: true delegate_to: "{{ groups['all'][0] }}"
- name: Print proxygroup_check - name: Print proxygroup_check
debug: debug:
@@ -265,8 +265,8 @@
Authorization: "Bearer {{ zabbix_auth_token }}" Authorization: "Bearer {{ zabbix_auth_token }}"
when: proxygroup_check.json.result | length == 0 when: proxygroup_check.json.result | length == 0
register: proxygroup_check2 register: proxygroup_check2
delegate_to: localhost # This forces the task to run locally run_once: true # Run this task only once
run_once: true delegate_to: "{{ groups['all'][0] }}"
- name: Print proxygroup_check2 - name: Print proxygroup_check2
debug: debug:
@@ -288,6 +288,8 @@
Content-Type: "application/json" Content-Type: "application/json"
Authorization: "Bearer {{ zabbix_auth_token }}" Authorization: "Bearer {{ zabbix_auth_token }}"
register: proxy_check register: proxy_check
- name: Print proxy_check - name: Print proxy_check
debug: debug:
msg: "{{ proxy_check }}" msg: "{{ proxy_check }}"