Add Checkmk downtime before Debian updates

This commit is contained in:
Vincent Stuyck
2026-10-27 08:46:14 +01:00
parent bbfac7a857
commit 1ceab1d0ec
5 changed files with 29 additions and 9 deletions
+11
View File
@@ -5,6 +5,17 @@
become: true
tasks:
- name: Create Downtime
checkmk.general.downtime:
server_url: "{{ checkmk_api_url }}"
site: "{{ checkmk_api_site }}"
api_user: "{{ checkmk_api_user }}"
api_secret: "{{ checkmk_api_secret }}"
host_name: "{{ inventory_hostname }}"
comment: "created by update-debian playbook"
end_after:
hours: 1
- name: Perform a dist-upgrade.
ansible.builtin.apt:
upgrade: dist