mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
|
||||
- name: Print proxygroup_check
|
||||
debug:
|
||||
msg: "{{ proxygroup_check }}"
|
||||
msg: "{{ proxygroup_check.json.result[0] }}"
|
||||
|
||||
- name: Create proxy if not exists
|
||||
uri:
|
||||
@@ -263,12 +263,12 @@
|
||||
Content-Type: "application/json"
|
||||
Authorization: "Bearer {{ zabbix_auth_token }}"
|
||||
when: proxygroup_check.json.result | length == 0
|
||||
register: proxygroup_check2
|
||||
register: proxygroup_check
|
||||
run_once: true # Run this task only once
|
||||
|
||||
- name: Print proxygroup_check2
|
||||
- name: Print proxygroup_check
|
||||
debug:
|
||||
msg: "{{ proxygroup_check2 }}"
|
||||
msg: "{{ proxygroup_check.json.result.proxy_groupids[0] }}"
|
||||
|
||||
- name: Check if proxy exists
|
||||
uri:
|
||||
|
||||
Reference in New Issue
Block a user