From dd03d7580b6012a7a20f90b541a065b7d6ee8d85 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 14 Apr 2024 21:18:56 +0200 Subject: [PATCH] ff --- roles/mgrote_cv4pve_autosnap/tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/mgrote_cv4pve_autosnap/tasks/main.yml b/roles/mgrote_cv4pve_autosnap/tasks/main.yml index 386e9553..dff16a5d 100644 --- a/roles/mgrote_cv4pve_autosnap/tasks/main.yml +++ b/roles/mgrote_cv4pve_autosnap/tasks/main.yml @@ -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'] }}"