Improve venv cleanup regexp discovery

Change-Id: If52687cb1fabed575eb3467216163b64b0c89635
This commit is contained in:
Kirill Tyugaev 2022-12-20 16:13:52 +03:00
parent 44ae9af3f5
commit 11efaaec95

View File

@ -20,7 +20,7 @@
find:
paths: /openstack/venvs
file_type: directory
patterns: '^.*-(\d+(\.\d+){2})(?<!{{ venv_tag }})(-python[23])?$'
patterns: '^.*-(\d+(\.\d+){2}(.dev\d+)?)(?<!{{ venv_tag }})(-python[23])?$'
use_regex: yes
register: result
- name: Delete older directories