classroom/roles/winroom/tasks/ocaml.yml

32 lines
875 B
YAML
Raw Normal View History

2022-09-25 10:35:45 +00:00
# TODO ugh
#- name: Install OCaml
# win_chocolatey:
# name: ocaml
#- name: Set Ocaml installer version
# set_fact:
# target_version: "1.0.1"
#
#- name: Check Ocaml install status
# win_stat:
# path: C:\Program Files (x86)\Thonny\thonny.exeasd
# register: file
#
#- when: not file.stat.exists
# block:
# # win_package fails to download for some reason
# - name: Download Ocaml
# win_get_url:
# url: https://github.com/diskuv/dkml-installer-ocaml/releases/download/v{{ target_version }}/setup-diskuv-ocaml-windows_x86_64-{{ target_version }}.exe
# dest: 'C:\'
# register: download
#
# - name: Install Ocaml
# win_package:
# path: "{{ download.dest }}"
# #arguments: /Verysilent /AllUsers
#
# - name: Remove temporary files
# win_file:
# path: "{{ download.dest }}"
# state: absent