Voorbeeld van Python Installatie met de Windows Rol van de C2 Platform
Een voorbeeld van hoe je Python 3.13.3 kunt installeren met behulp van de WinCore collectie van het C2 Platform.
Categories:
Projecten: c2platform/phx/ansible
,
c2platform.core
Het volgende voorbeeld maakt deel uit van het PHX inventarisproject
c2platform/phx/ansible
,
gevestigd in het bestand
/master/group_vars/win_devtop/python.yml
. Het maakt gebruik van de win_resources
variabele uit de Ansible collectie van C2 Platform
c2platform.core
om Python te downloaden en te installeren.
---
px_python_path: "{{ px_apps_dir }}/Python313"
win_resources:
1_python:
- name: Download Python
type: win_get_url
url: https://www.python.org/ftp/python/3.13.3/python-3.13.3-amd64.exe
dest: "{{ px_download_temp_dir['path'] }}/python-3.13.3-amd64.exe"
checksum: be3264daeb8c5e08365492dd02908cfa
checksum_algorithm: md5
- name: Installeer Python
type: win_package
path: "{{ px_download_temp_dir['path'] }}/python-3.13.3-amd64.exe"
arguments: '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="{{ px_python_path | c2platform.core.replace_slashes }}"'
creates_path: "{{ px_python_path }}"
Feedback
Was deze pagina nuttig?
Fijn om te horen! Vertel ons alstublieft hoe we kunnen verbeteren.
Jammer om dat te horen. Vertel ons alstublieft hoe we kunnen verbeteren.
Laatst gewijzigd 2025.05.26: python install using win role PHX-6 (fac4378)