add purge_venv to jenkinsfile for disk api

This commit is contained in:
2026-04-25 21:39:45 -07:00
parent 67f3f8440b
commit b4839fde66
7 changed files with 81 additions and 25 deletions

View File

@ -5,6 +5,20 @@
name: python
state: present
- name: Purge venv if asked
when: purge_venv | bool
block:
- name: Remove service
ansible.windows.win_service:
name: "{{ disk_service_name }}"
state: absent
- name: purge folder
ansible.windows.win_file:
path: "{{ python_venv }}"
state: absent
- name: Create venv folder
ansible.windows.win_file:
path: "{{ python_venv }}"