Removed task to cleanup venv tgz

venv tgz in /var/cache/ no longer exist.

Change-Id: Ib91712b5663ec24e29de28e2522046c8dc1b90c6
This commit is contained in:
Adrien Cunin 2021-03-24 15:13:01 +01:00
parent 518159ef40
commit a7de5d89a8

View File

@ -28,19 +28,3 @@
path: "{{ item.path }}"
state: absent
with_items: "{{ result.files }}"
- name: Remove older venv tgz
hosts: all
tasks:
- name: List venv tgz
find:
paths: /var/cache
file_type: file
patterns: '.*(?<!{{ venv_tag }})-{{ ansible_architecture | lower }}\.tgz$'
use_regex: yes
register: result
- name: Delete older tgz
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ result.files }}"