3
0
forked from jakub/ansible

Update mikrotikbackup_clean.yml

This commit is contained in:
2026-03-21 09:19:01 +00:00
parent 3920664747
commit 9002c65487

View File

@@ -7,6 +7,8 @@
vars:
backup_dir: /opt/mikrotik_backups/
checkmk_url: "http://192.168.19.8:8080/cmk/check_mk/api/1.0/domain-types/service/collections/all"
checkmk_user: "apitoken"
checkmk_token: "YXBpdG9rZW46TkVXX1NFQ1JFVA=="
checkmk_service_description: "MikroTik Backup/Upgrade"
tasks:
@@ -224,8 +226,10 @@
uri:
url: "{{ checkmk_url }}"
method: POST
url_username: "{{ checkmk_user }}"
url_password: "{{ checkmk_token }}"
force_basic_auth: yes
headers:
Authorization: "Bearer {{ lookup('env', 'CHECKMK_TOKEN') }}"
Content-Type: "application/json"
body_format: json
body:
@@ -242,4 +246,5 @@
- name: Show Checkmk output
debug:
var: cmk_output
var: cmk_output