Ansible playbook that installs a GHC from the binary file and a cabal from the source file. Ansibler user need to have no root privilege.
- Python
- Ansible 1.4 and over
- SSH server and client
- Debian, Ubuntu
- CentOS
- Mac OS X
- Setup ssh server on destination host.
- Setup ssh client.
- Install Python and Ansible.
- Download this playbook. git clone git@github.com:algas/haskell-playbook.git
Make sure that you customise the following files:
- [
hosts
] - hosts to be installed (localhost as default) - [
group_vars/all
] - configuration arguments- Debian, Ubuntu:
cp group_vars/all.example.debian group_vars/all
- CentOS:
cp group_vars/all.example.centos group_vars/all
- Mac OS X :
cp group_vars/all.example.macosx group_vars/all
- Debian, Ubuntu:
Run command:
ansible-playbook -i hosts site.yml
- Remember to add PATH to ghc and cabal.
Add the following line into your shell profile (.bashrc or .bash_profile)
echo "export PATH=$HOME/ghc/bin:$HOME/.cabal/bin:$PATH" >> ~/.bash_profile
Licensed under the Apache License, Version 2.0.
Copyright (c) 2013- Masahiro Yamauchi.