first test disk service pipeline

This commit is contained in:
2025-10-26 14:04:42 -07:00
parent d71bb9b6d7
commit 8411578068
10 changed files with 193 additions and 11 deletions

View File

@ -0,0 +1,31 @@
---
- name: Ensure Python is installed
win_chocolatey:
name: python
state: present
- name: Create venv folder
ansible.windows.win_file:
path: "{{ python_venv }}"
state: directory
- name: Copy requirements.txt
ansible.windows.win_copy:
src: requirements.txt
dest: "{{ python_venv }}\requirements.txt"
- name: Create virtual environment
win_shell: "py -m venv {{ python_venv }}"
- name: Upgrade pip in the virtual environment
win_shell: "{{ python_venv }}\pip install --upgrade pip"
args:
chdir: "{{ python_venv }}"
- name: Install Python dependencies from requirements.txt
win_shell: "{{ python_venv }}\pip install -r {{ python_venv }}\requirements.txt"
args:
chdir: "{{ python_venv }}"
...