Fixed venvs pattern to be more specific

Closes-Bug: #1910223
Change-Id: Icb58263a2a59f131715a5120652a39ed67673e39
This commit is contained in:
Adrien Cunin 2021-03-24 14:58:56 +01:00
parent 518159ef40
commit ddedfcff76

View File

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