- Update Longhorn Node API versions from v1beta1 to v1beta2 in disk management tasks - Add venv_path configuration and set ansible_python_interpreter to use virtual environment - Introduce python3.14-venv.yml task and python314_venv role for Python virtual environment setup
25 lines
608 B
YAML
25 lines
608 B
YAML
---
|
|
- name: Install Python 3.14 and pip
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- python3.14
|
|
- python3.14-pip
|
|
state: present
|
|
|
|
- name: Verify Python 3.14 installation
|
|
ansible.builtin.command: python3.14 --version
|
|
register: _python_version
|
|
changed_when: false
|
|
|
|
- name: Create virtual environment
|
|
ansible.builtin.command: python3.14 -m venv {{ venv_path }}
|
|
args:
|
|
creates: "{{ venv_path }}/bin/activate"
|
|
when: venv_path is defined
|
|
|
|
- name: Upgrade pip in virtual environment
|
|
ansible.builtin.pip:
|
|
executable: "{{ venv_path }}/bin/pip"
|
|
upgrade: true
|
|
when: venv_path is defined
|