This commit is contained in:
2026-02-16 02:04:40 +01:00
parent 0e9a3c3f5a
commit 01fd1e79fa

View File

@@ -244,7 +244,7 @@
- name: Print proxygroup_check - name: Print proxygroup_check
debug: debug:
msg: "{{ proxygroup_check }}" msg: "{{ proxygroup_check.json.result[0] }}"
- name: Create proxy if not exists - name: Create proxy if not exists
uri: uri:
@@ -263,12 +263,12 @@
Content-Type: "application/json" Content-Type: "application/json"
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_check
run_once: true # Run this task only once run_once: true # Run this task only once
- name: Print proxygroup_check2 - name: Print proxygroup_check
debug: debug:
msg: "{{ proxygroup_check2 }}" msg: "{{ proxygroup_check.json.result.proxy_groupids[0] }}"
- name: Check if proxy exists - name: Check if proxy exists
uri: uri: