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 enabled: true
- name: Capture files to delete - name: Capture files to delete
find: ansible.builtin.find:
paths: /usr/local/bin/cv4pve paths: /usr/local/bin/cv4pve
file_type: file file_type: file
use_regex: false
excludes: excludes:
- "/usr/local/bin/cv4pve/cv4pve-autosnap-{{ cv4pve_version }}" - "cv4pve-autosnap-{{ cv4pve_version }}"
register: found_files register: found_files
- name: Delete files - name: Delete files
file: ansible.builtin.file:
path: "{{ item.path }}" path: "{{ item.path }}"
state: absent state: absent
with_items: "{{ found_files['files'] }}" with_items: "{{ found_files['files'] }}"