Update mikrotikbackup_clean.yml
This commit is contained in:
@@ -76,14 +76,7 @@
|
||||
register: update_info
|
||||
|
||||
# ----------------------------
|
||||
# Debug raw output (remove after confirming parsing works)
|
||||
# ----------------------------
|
||||
- name: Debug raw update output
|
||||
debug:
|
||||
msg: "{{ update_info.stdout[0] }}"
|
||||
|
||||
# ----------------------------
|
||||
# PARSING — regex_search with capture groups
|
||||
# Parsing
|
||||
# ----------------------------
|
||||
- name: Extract installed version
|
||||
set_fact:
|
||||
@@ -241,6 +234,11 @@
|
||||
state: "{{ cmk_state | int }}"
|
||||
output: "{{ cmk_output }}"
|
||||
failed_when: false
|
||||
register: cmk_result
|
||||
|
||||
- name: Debug Checkmk response
|
||||
debug:
|
||||
msg: "status={{ cmk_result.status }} body={{ cmk_result.json | default(cmk_result.msg) }}"
|
||||
|
||||
- name: Show Checkmk output
|
||||
debug:
|
||||
|
||||
Reference in New Issue
Block a user