update cv4pve autosnap role #20
1 changed files with 4 additions and 3 deletions
|
@ -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'] }}"
|
||||
|
|
Loading…
Reference in a new issue