Skip to content
Snippets Groups Projects
Commit ff9a8cea authored by Vladimír Štill's avatar Vladimír Štill
Browse files

ansible: Multiple changes in ghc_deb

parent 0e729476
No related branches found
No related tags found
No related merge requests found
auto_install_ghc: true
......@@ -11,35 +11,40 @@
- name: add GHC repository
apt_repository:
repo: deb http://downloads.haskell.org/debian bullseye main
repo: deb http://downloads.haskell.org/debian buster main
filename: ghc
state: present
- name: install ghc 8.10 & cabal 3.2
apt:
pkg:
- cabal-install-3.2
- ghc-8.10.2
state: present
- name: "auto install ghc"
block:
- name: install ghc 8.10 .. 9.2 & cabal 3.4
apt:
pkg:
- cabal-install-3.4
- ghc-8.10.2
- ghc-9.0.2
- ghc-9.2.1
state: present
- name: drop old versions
apt:
pkg:
- ghc-8.10.1
- ghc
- cabal-install
state: absent
- name: drop old versions
apt:
pkg:
- ghc-8.10.1
- ghc
- cabal-install
state: absent
- name: setup links to up-to-date GHC
alternatives:
name: "global-haskell-{{item}}"
link: "/usr/local/bin/{{item}}"
path: "/opt/ghc/bin/{{item}}"
priority: 50
with_items:
- cabal
- ghc
- ghci
- ghc-pkg
- haddock
- runghc
- name: setup links to up-to-date GHC
alternatives:
name: "global-haskell-{{item}}"
link: "/usr/local/bin/{{item}}"
path: "/opt/ghc/bin/{{item}}"
priority: 50
with_items:
- cabal
- ghc
- ghci
- ghc-pkg
- haddock
- runghc
when: auto_install_ghc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment