mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-30 03:08:15 +00:00
fixes with linter
This commit is contained in:
parent
932046cc39
commit
66109effc5
20 changed files with 124 additions and 111 deletions
|
|
@ -1,19 +1,25 @@
|
|||
- name: Download ghcup bootstrap script
|
||||
ansible.builtin.uri:
|
||||
url:
|
||||
return_content: yes
|
||||
url: https://get-ghcup.haskell.org
|
||||
return_content: true
|
||||
register: ghcup_bootstrap
|
||||
|
||||
- name: Check if .ghcup present
|
||||
ansible.builtin.stat:
|
||||
path: '{{ ansible_env.HOME }}/.ghcup'
|
||||
register: ghcup_dir
|
||||
|
||||
# TODO: detect fish install ??
|
||||
- name: Install ghcup, stack, lsp server
|
||||
ansible.builtin.shell:
|
||||
cmd: sh
|
||||
stdin: {{ ghcup_bootstrap.content }}
|
||||
environment:
|
||||
SHELL: /usr/bin/fish # TODO: detect fish install ??
|
||||
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
||||
BOOTSTRAP_HASKELL_GHC_VERSION: latest
|
||||
BOOTSTRAP_HASKELL_CABAL_VERSION: latest
|
||||
BOOTSTRAP_HASKELL_INSTALL_STACK: 1
|
||||
BOOTSTRAP_HASKELL_INSTALL_HLS: 1
|
||||
BOOTSTRAP_HASKELL_ADJUST_BASHRC: P
|
||||
|
||||
ansible.builtin.shell: |
|
||||
SHELL='/usr/bin/fish'
|
||||
BOOTSTRAP_HASKELL_NONINTERACTIVE=1
|
||||
BOOTSTRAP_HASKELL_GHC_VERSION=latest
|
||||
BOOTSTRAP_HASKELL_CABAL_VERSION=latest
|
||||
BOOTSTRAP_HASKELL_INSTALL_STACK=1
|
||||
BOOTSTRAP_HASKELL_INSTALL_HLS=1
|
||||
BOOTSTRAP_HASKELL_ADJUST_BASHRC=P
|
||||
{{ ghcup_bootstrap.content }}
|
||||
args:
|
||||
executable: /bin/sh
|
||||
changed_when: not ghcup_dir.stat.exists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue