kvm_host: Add script for checking orphaned vm data

This commit is contained in:
Timo Makinen 2024-12-17 00:23:31 +00:00
parent 70629e547e
commit e9752c560a
2 changed files with 39 additions and 0 deletions

View file

@ -53,3 +53,18 @@
name: libvirtd
state: started
enabled: true
- name: Install script for checking orphaned vm's
ansible.builtin.copy:
dest: /usr/local/bin/check-orphaned-vm
src: check-orphaned-vm.sh
mode: "0755"
owner: root
group: "{{ ansible_wheel }}"
- name: Add cronjob to check orphaned vm's
ansible.builtin.cron:
name: check-orphaned-vm
hour: "5"
minute: "5"
job: /usr/local/bin/check-orphaned-vm