ff
This commit is contained in:
parent
fe03630859
commit
dd03d7580b
1 changed files with 4 additions and 3 deletions
|
@ -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'] }}"
|
||||||
|
|
Loading…
Reference in a new issue