update cv4pve autosnap role #20
1 changed files with 17 additions and 4 deletions
|
@ -63,10 +63,23 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
- name: Capture files to delete
|
||||||
|
find:
|
||||||
|
paths: /usr/local/bin/cv4pve
|
||||||
|
file_type: file
|
||||||
|
excludes:
|
||||||
|
- "/usr/local/bin/cv4pve/cv4pve-autosnap-{{ cv4pve_version }}"
|
||||||
|
register: found_files
|
||||||
|
|
||||||
- name: remove old cv4pve versions
|
- name: Delete files
|
||||||
ansible.builtin.command: |
|
file:
|
||||||
rm -rf /tmp/cv4pve/cv4pve-autosnap-linux-x64-{{ cv4pve_version }}
|
path: "{{ item.path }}"
|
||||||
path: "{{ item['path'] }}"
|
|
||||||
state: absent
|
state: absent
|
||||||
|
with_items: "{{ found_files['files'] }}"
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
# permissions
|
||||||
|
# etxte
|
||||||
|
#linter
|
||||||
|
# varioablen
|
||||||
|
|
Loading…
Reference in a new issue