PPJ cleanup

This commit is contained in:
kllemen 2024-09-13 15:52:03 +02:00
parent dafd821af9
commit ba865a9034
9 changed files with 49 additions and 64 deletions

View file

@ -1,25 +1,25 @@
- name: Check Haskell install status
win_stat:
path: C:\ghcup\bin\ghc.exe
register: file
# - name: Check Haskell install status
# win_stat:
# path: C:\ghcup\bin\ghc.exe
# register: file
- when: not file.stat.exists
block:
- name: Download Haskell
win_get_url:
url: "https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1"
dest: 'C:\'
register: download
# - when: not file.stat.exists
# block:
# - name: Download Haskell
# win_get_url:
# url: "https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1"
# dest: 'C:\'
# register: download
- name: Install Haskell
win_command: powershell.exe {{ download.dest }} -InBash -ExistingMsys2Dir C:\msys64
# - name: Install Haskell
# win_command: powershell.exe {{ download.dest }} -InBash -ExistingMsys2Dir C:\msys64
- name: Add Haskell to PATH
win_path:
elements:
C:\ghcup\bin
# - name: Add Haskell to PATH
# win_path:
# elements:
# C:\ghcup\bin
- name: Remove temporary files
win_file:
path: "{{ download.dest }}"
state: absent
# - name: Remove temporary files
# win_file:
# path: "{{ download.dest }}"
# state: absent