update cv4pve autosnap role #20

Merged
mg merged 20 commits from cv4_update into master 2024-04-14 21:40:43 +02:00
Showing only changes of commit dd03d7580b - Show all commits

View file

@ -64,15 +64,16 @@
enabled: true
- name: Capture files to delete
find:
ansible.builtin.find:
paths: /usr/local/bin/cv4pve
file_type: file
use_regex: false
excludes:
- "/usr/local/bin/cv4pve/cv4pve-autosnap-{{ cv4pve_version }}"
- "cv4pve-autosnap-{{ cv4pve_version }}"
register: found_files
- name: Delete files
file:
ansible.builtin.file:
path: "{{ item.path }}"
state: absent
with_items: "{{ found_files['files'] }}"