kvm_host: Add script for checking orphaned vm data
This commit is contained in:
parent
70629e547e
commit
e9752c560a
2 changed files with 39 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue