Use edition in filename and rename backup task

This commit is contained in:
Vincent Stuyck 2026-06-17 11:09:06 +02:00
parent 2882f28443
commit 39f65a88b1

View File

@ -49,7 +49,8 @@
- name: Install new checkmk version
vars:
filename: "check-mk-raw-{{ checkmk_version }}_0.{{ ansible_facts.lsb.codename }}_amd64.deb"
checkmk_edition: community
filename: "check-mk-{{ checkmk_edition }}-{{ checkmk_version }}_0.{{ ansible_facts.lsb.codename }}_amd64.deb"
ansible.builtin.apt:
deb: "https://download.checkmk.com/checkmk/{{ checkmk_version }}/{{ filename }}"
when: ansible_facts.lsb.id == 'Ubuntu'
@ -60,7 +61,7 @@
loop: "{{ checkmk_sites }}"
ansible.builtin.command: "omd stop {{ item }}"
- name: Create backup of site (/tmp/backup-{{ item }}.tar.gz)
- name: Create Site backups
changed_when: true
loop: "{{ checkmk_sites }}"
ansible.builtin.command: "omd backup {{ item }} /tmp/backup-{{ item }}.tar.gz"